Click here to Skip to main content
15,879,535 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: The best way to get the keystrokes in ASCII form Pin
Owner drawn1-Jan-06 20:19
Owner drawn1-Jan-06 20:19 
GeneralRe: The best way to get the keystrokes in ASCII form Pin
INA_ctive2-Jan-06 5:27
INA_ctive2-Jan-06 5:27 
QuestionCopyTo method in Class String Pin
zpeng1-Jan-06 11:12
zpeng1-Jan-06 11:12 
Questioncommunication between and Bi directional communication between VC and C Pin
sheshidar1-Jan-06 10:21
sheshidar1-Jan-06 10:21 
AnswerRe: communication between and Bi directional communication between VC and C Pin
Prakash Nadar1-Jan-06 17:45
Prakash Nadar1-Jan-06 17:45 
Generalcommunication between VC and C Pin
sheshidar1-Jan-06 22:45
sheshidar1-Jan-06 22:45 
GeneralRe: communication between VC and C Pin
Prakash Nadar1-Jan-06 23:54
Prakash Nadar1-Jan-06 23:54 
QuestionBrush and Window Color ... Pin
Hadi Rezaee1-Jan-06 4:42
Hadi Rezaee1-Jan-06 4:42 
Hi there,

How can i make a Brush with default window color ?!

I just tried below code, but it doesn't work Frown | :( :

HBRUSH hBrush = ::GetSysColorBrush( COLOR_WINDOW );

When i use below code to make the brush (with XP default window color), it just works fine (as u see, the i passed the color HANDY (!!), i'm looking for code that make that automatically. ) Confused | :confused: :

HBRUSH hBrush = CreateSolidBrush( RGB( 236, 233, 210 ) );

I want to use the brush for painting a Static Control (Custom control) background ... (in CtlColor function, ON_WM_CTLCOLOR_REFLECT() msg)

Please help Smile | :)

Regards,
Hadi
AnswerRe: Brush and Window Color ... Pin
Hadi Rezaee1-Jan-06 5:12
Hadi Rezaee1-Jan-06 5:12 
GeneralRe: Brush and Window Color ... Pin
John R. Shaw1-Jan-06 9:08
John R. Shaw1-Jan-06 9:08 
QuestionIP Address Pin
mehrdadov1-Jan-06 1:10
mehrdadov1-Jan-06 1:10 
AnswerRe: IP Address Pin
includeh101-Jan-06 1:15
includeh101-Jan-06 1:15 
GeneralRe: IP Address Pin
Prakash Nadar1-Jan-06 4:21
Prakash Nadar1-Jan-06 4:21 
GeneralRe: IP Address Pin
Jörgen Sigvardsson1-Jan-06 10:08
Jörgen Sigvardsson1-Jan-06 10:08 
AnswerRe: IP Address Pin
Gavin Taylor1-Jan-06 6:10
professionalGavin Taylor1-Jan-06 6:10 
AnswerRe: IP Address Pin
Jetli Jerry1-Jan-06 18:05
Jetli Jerry1-Jan-06 18:05 
GeneralRe: IP Address Pin
Gavin Taylor2-Jan-06 1:39
professionalGavin Taylor2-Jan-06 1:39 
GeneralRe: IP Address Pin
Jetli Jerry2-Jan-06 3:31
Jetli Jerry2-Jan-06 3:31 
AnswerRe: IP Address Pin
dipuks1-Jan-06 6:19
dipuks1-Jan-06 6:19 
GeneralRe: IP Address Pin
Jörgen Sigvardsson1-Jan-06 10:08
Jörgen Sigvardsson1-Jan-06 10:08 
GeneralRe: IP Address Pin
zpeng1-Jan-06 11:04
zpeng1-Jan-06 11:04 
AnswerRe: IP Address Pin
ThatsAlok1-Jan-06 18:32
ThatsAlok1-Jan-06 18:32 
QuestionHow do I declare global variable? Pin
Toubou31-Dec-05 23:42
Toubou31-Dec-05 23:42 
AnswerRe: How do I declare global variable? Pin
Dominik Reichl1-Jan-06 1:00
Dominik Reichl1-Jan-06 1:00 
GeneralRe: How do I declare global variable? Pin
Toubou1-Jan-06 1:23
Toubou1-Jan-06 1:23 

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.