Click here to Skip to main content
15,889,462 members
Home / Discussions / C#
   

C#

 
GeneralRe: Interop question...C# DllImport with const Pin
leppie24-Oct-02 12:31
leppie24-Oct-02 12:31 
GeneralFont Program Pin
Substitute20-Oct-02 3:01
Substitute20-Oct-02 3:01 
GeneralRe: Font Program Pin
Wjousts20-Oct-02 12:24
Wjousts20-Oct-02 12:24 
QuestionHow can I access Classes from NON-COM DLL's Pin
Rodney S. Foley19-Oct-02 16:27
Rodney S. Foley19-Oct-02 16:27 
AnswerRe: How can I access Classes from NON-COM DLL's Pin
Nish Nishant19-Oct-02 17:12
sitebuilderNish Nishant19-Oct-02 17:12 
GeneralRe: How can I access Classes from NON-COM DLL's Pin
Rodney S. Foley19-Oct-02 17:28
Rodney S. Foley19-Oct-02 17:28 
GeneralRe: How can I access Classes from NON-COM DLL's Pin
Nish Nishant19-Oct-02 18:31
sitebuilderNish Nishant19-Oct-02 18:31 
GeneralRe: How can I access Classes from NON-COM DLL's Pin
James T. Johnson19-Oct-02 23:37
James T. Johnson19-Oct-02 23:37 
Generalregular expressions Pin
Jeremy Pullicino19-Oct-02 12:26
Jeremy Pullicino19-Oct-02 12:26 
GeneralRe: regular expressions Pin
Paul Riley19-Oct-02 13:06
Paul Riley19-Oct-02 13:06 
GeneralRe: regular expressions Pin
James T. Johnson19-Oct-02 13:14
James T. Johnson19-Oct-02 13:14 
GeneralRe: regular expressions Pin
James T. Johnson19-Oct-02 13:17
James T. Johnson19-Oct-02 13:17 
GeneralRe: regular expressions Pin
Paul Riley19-Oct-02 13:35
Paul Riley19-Oct-02 13:35 
GeneralRe: regular expressions Pin
Jeremy Pullicino19-Oct-02 13:41
Jeremy Pullicino19-Oct-02 13:41 
GeneralRe: regular expressions Pin
James T. Johnson19-Oct-02 13:55
James T. Johnson19-Oct-02 13:55 
GeneralRe: regular expressions Pin
Paul Riley20-Oct-02 1:36
Paul Riley20-Oct-02 1:36 
GeneralRe: regular expressions Pin
Eric Gunnerson (msft)22-Oct-02 11:43
Eric Gunnerson (msft)22-Oct-02 11:43 
QuestionEquivalent Win32 API to Control.InvokePaint? Pin
Li-kai Liu (Angus)19-Oct-02 11:37
Li-kai Liu (Angus)19-Oct-02 11:37 
AnswerRe: Equivalent Win32 API to Control.InvokePaint? Pin
David Stone19-Oct-02 12:12
sitebuilderDavid Stone19-Oct-02 12:12 
GeneralRe: Equivalent Win32 API to Control.InvokePaint? Pin
Li-kai Liu (Angus)19-Oct-02 13:22
Li-kai Liu (Angus)19-Oct-02 13:22 
GeneralRe: Equivalent Win32 API to Control.InvokePaint? Pin
Li-kai Liu (Angus)19-Oct-02 14:31
Li-kai Liu (Angus)19-Oct-02 14:31 
Well, maybe still not very clear in my previous reply.

I included a picture of the button control I've been
writing for fun.

http://www.ykliu.com/problem.png[^]

It's a small button that draw everything from scratch. I plan a
few features for this button:
- support theme automatically. done! (Thanks for help from James T. Johnson)
- support shadowed text. done! (Thanks for great tutorials from Christian Graus)
- to able to draw underlying control, so it looks like transparent background is supported.

Well, that's why I come up with this question.

Though, I am able to use InvokePaint, InvokePaintBackground to redraw the
underlying parent control. Suddenly this question comes to my mind. If
I want to write another custom control that use this feature by using
InvokePaint. There is no way but inheriting it from Control Class.

Wouldn't it be better if I can write a static function, passing the caller
control and caller's parent control as parameter, then the function will
repaint caller control with the underlying parent's background.

Thanks in advance...

P.S. there's also another painting problem I found. illustrated in the included image.

Li-kai Liu
GeneralSendInput C# example Pin
Bog19-Oct-02 8:58
Bog19-Oct-02 8:58 
GeneralRe: SendInput C# example Pin
Stephane Rodriguez.19-Oct-02 9:34
Stephane Rodriguez.19-Oct-02 9:34 
GeneralRe: SendInput C# example Pin
Bog20-Oct-02 13:29
Bog20-Oct-02 13:29 
GeneralRe: SendInput C# example Pin
leppie20-Oct-02 13:59
leppie20-Oct-02 13:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.