Click here to Skip to main content
15,436,928 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I ported over an SDI app from VS6.0 to VS2008. For the life of me I can not get my title bar icons to show up, (system menu icon, minimize, maximize, close).
I tried over-riding PreCreateWindow with:
C#
cs.style = WS_OVERLAPPED | WS_CAPTION | FWS_ADDTOTITLE
   | WS_THICKFRAME | WS_SYSMENU | WS_MINIMIZEBOX |   WS_MAXIMIZEBOX;

if( !CFrameWnd::PreCreateWindow(cs) )
   return 0;

return TRUE;


It goes through the code, but other than than the current document's title, the titlebar is blank.
Any ideas?
Posted
Updated 5-Oct-12 4:45am
v3

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