Click here to Skip to main content
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 Sergey Alexandrovich Kryukov 345
1 Gihan Liyanage 332
2 OriginalGriff 283
3 ClimerChinna 222
4 Zoltán Zörgő 170
0 Sergey Alexandrovich Kryukov 8,243
1 OriginalGriff 7,109
2 CPallini 2,598
3 Richard MacCutchan 1,980
4 Abhinav S 1,778


Advertise | Privacy | Mobile
Web02 | 2.8.140826.1 | Last Updated 5 Oct 2012
Copyright © CodeProject, 1999-2014
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