Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Using 0x1000 dosen't work either,

MSDN documentation about DC_BUTTONS flag for DrawCaption said: Windows XP: If set, the function draws the buttons in the caption bar (to minimize, restore, or close an application).

my platform is just Windows XP and my code:
C++
::DrawCaption(m_hWnd,hdc,&rtTitle,DC_ACTIVE|DC_ICON|DC_TEXT|0x1000);


Other Items can be drawn except these buttons
Posted
Updated 16-Feb-12 5:46am
v2

DC_BUTTONS is defined as 0x1000 (see winuser.h).

If 'not work' means that you get a compiler error when using DC_BUTTONS: The definition requires _WIN32_WINNT >= 0x0501 (XP or later). You may adjust _WIN32_WINNT in your stadfx.h file or use 0x1000 instead.

It is not supported by Windows versions prior to XP and will not work on those.
 
Share this answer
 
Sorry,i meant 0x1000,i had spell it wrong

my platform is just Windows XP
 
Share this answer
 
Comments
Jochen Arndt 16-Feb-12 10:21am    
Please edit your question to do such corrections rather than using a solution.

If the other points from my answer does not match, you should give us some more information how the window is created (from resource or dynamically). If dynamically just add the code line of creation to your question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900