Click here to Skip to main content
11,639,178 members (71,175 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: MFC docview
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:
 
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 5-Oct-12 4:25am
Edited 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)

  Print Answers RSS
0 OriginalGriff 9,081
1 Sergey Alexandrovich Kryukov 8,812
2 Mika Wendelius 7,027
3 Suvendu Shekhar Giri 2,600
4 F-ES Sitecore 2,548


Advertise | Privacy | Mobile
Web04 | 2.8.150728.1 | Last Updated 5 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100