Click here to Skip to main content
16,005,038 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCRichEditCtrl + tool tip Pin
harsha_123430-Jul-06 19:32
harsha_123430-Jul-06 19:32 
Questionchar[n] to int ? Pin
User 96257830-Jul-06 19:26
User 96257830-Jul-06 19:26 
AnswerRe: char[n] to int ? [modified] Pin
John Saunders30-Jul-06 19:35
John Saunders30-Jul-06 19:35 
GeneralRe: char[n] to int ? [modified] Pin
User 96257830-Jul-06 19:49
User 96257830-Jul-06 19:49 
AnswerRe: char[n] to int ? Pin
Hamid_RT30-Jul-06 21:16
Hamid_RT30-Jul-06 21:16 
GeneralRe: char[n] to int ? Pin
toxcct30-Jul-06 21:21
toxcct30-Jul-06 21:21 
GeneralRe: char[n] to int ? Pin
Hamid_RT30-Jul-06 21:50
Hamid_RT30-Jul-06 21:50 
QuestionOnNcPaint blocks XP visual styles Pin
John Saunders30-Jul-06 19:19
John Saunders30-Jul-06 19:19 
I have an application that places a custom button on the window caption bar. However I am having a problem when running on Windows XP.

I am finding that simply handling the WM_NCPAINT message causes XP to render the caption bar with the old Windows 2000 style. If I comment out ON_WM_NCPAINT() in the message map the caption bar is then drawn with the current XP style, put it back and the Windows 2000 style is used.

To make matters worse GetSystemMetrics returns caption icon sizes that match the XP theme, even when it is rendering the Windows 2000 style. This means I have no way of calculating the icon size and position.

I feel like I am trapped, I can't have the XP style because handling WM_NCPAINT automatically disables it, and I can't have the Windows 2000 style because GetSystemMetrics won't tell me the correct sizes. How does Microsoft expect people to now put icons on the caption bar?

Has anybody put a custom icon on the caption bar of XP and retained the themed style, how did you do it?

P.S. Popup dialog windows are render with the XP style regardless of what I do with the main window.
AnswerRe: OnNcPaint blocks XP visual styles Pin
James Brown30-Jul-06 19:58
James Brown30-Jul-06 19:58 
GeneralRe: OnNcPaint blocks XP visual styles Pin
John Saunders31-Jul-06 18:27
John Saunders31-Jul-06 18:27 
AnswerRe: OnNcPaint blocks XP visual styles Pin
Naveen30-Jul-06 20:07
Naveen30-Jul-06 20:07 
QuestionKeyboard mapping to application. Pin
Anu_Bala30-Jul-06 18:38
Anu_Bala30-Jul-06 18:38 
QuestionCreating installer utility Pin
ku1983200130-Jul-06 17:33
ku1983200130-Jul-06 17:33 
AnswerRe: Creating installer utility Pin
Hamid_RT30-Jul-06 18:15
Hamid_RT30-Jul-06 18:15 
Questionhow to create secure connection Pin
ku1983200130-Jul-06 17:30
ku1983200130-Jul-06 17:30 
AnswerRe: how to create secure connection Pin
With_problem30-Jul-06 17:56
With_problem30-Jul-06 17:56 
GeneralRe: how to create secure connection Pin
ku1983200130-Jul-06 18:34
ku1983200130-Jul-06 18:34 
AnswerRe: how to create secure connection [modified] Pin
sunit530-Jul-06 19:50
sunit530-Jul-06 19:50 
QuestionVC++/C++ Bluetooth Stack Pin
Shohab Abdullah30-Jul-06 17:16
Shohab Abdullah30-Jul-06 17:16 
Questionstore in database [modified] Pin
With_problem30-Jul-06 16:24
With_problem30-Jul-06 16:24 
QuestionRe: store in database Pin
Hamid_RT5-Aug-06 9:19
Hamid_RT5-Aug-06 9:19 
QuestionSeveral issues of sync/socket in MS plateform Pin
Tony_chan30-Jul-06 15:50
Tony_chan30-Jul-06 15:50 
QuestionOK - how does this crap work? Pin
Lord Kixdemp30-Jul-06 14:56
Lord Kixdemp30-Jul-06 14:56 
AnswerRe: OK - how does this crap work? Pin
Chris Losinger30-Jul-06 16:24
professionalChris Losinger30-Jul-06 16:24 
AnswerRe: OK - how does this crap work? Pin
Christian Graus30-Jul-06 19:53
protectorChristian Graus30-Jul-06 19:53 

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.