Click here to Skip to main content
12,069,894 members (65,548 online)
Rate this:
 
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 5:25am
Edited 5-Oct-12 5:45am
v3

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160208.1 | Last Updated 5 Oct 2012
Copyright © CodeProject, 1999-2016
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