Click here to Skip to main content
12,450,981 members (24,246 online)

C / C++ / MFC

GeneralRe: a simple question about global variable Pin
Malcolm McMahon21-Aug-01 0:36
memberMalcolm McMahon21-Aug-01 0:36 
Generalcrypt Pin
Anonymous20-Aug-01 22:37
memberAnonymous20-Aug-01 22:37 
GeneralRe: crypt Pin
Tim Deveaux21-Aug-01 6:15
memberTim Deveaux21-Aug-01 6:15 
GeneralSerialization Pin
Nick Armstrong20-Aug-01 22:09
memberNick Armstrong20-Aug-01 22:09 
GeneralRe: Serialization Pin
Niklas20-Aug-01 22:32
memberNiklas20-Aug-01 22:32 
GeneralHELP !!! CHARFORMAT2 and yHeight Pin
F.Julien20-Aug-01 21:42
memberF.Julien20-Aug-01 21:42 
GeneralMDI application Pin
Sagiv20-Aug-01 21:14
memberSagiv20-Aug-01 21:14 
GeneralRe: MDI application Pin
Ulf20-Aug-01 22:36
memberUlf20-Aug-01 22:36 
Don't know if this is an "easy" way, but it seems to work (I haven't tested it much). The idea is to replace the generated view window with a property page.

1. Generate a standard MDI project without Doc/View support.
2. Remove the generated CWnd derived view class from the project.
3. Add a FormView dialog resource and create a new CPropertyPage derived class attached to it.
4. In your CMDIChildWnd, replace the old view with an instance of your new CPropertyPage class.
5. In the child frame's WM_CREATE handler, remove the code to create the old view. Replace it with something like this:
m_wndView.Create(IDD_MAINVIEW, this); // Create a CPropertyPage based view
SetWindowLong(m_wndView.m_hWnd, GWL_STYLE, WS_CHILD | WS_VISIBLE); // Make it a child to the childframe
m_wndView.SetDlgCtrlID(AFX_IDW_PANE_FIRST); // Set the view to be first pane.
6. In CChildFrame::OnCmdMsg(), don't call the view's OnCmdMsg.

"Aagh!! I'm a victim of a Random Act of Management!"
GeneralCompress Pin
Ignat20-Aug-01 20:21
memberIgnat20-Aug-01 20:21 
GeneralRe: Compress Pin
Christian Graus21-Aug-01 0:51
memberChristian Graus21-Aug-01 0:51 
GeneralCOleDateTimeSpan wierdness.... Pin
Liam OHagan20-Aug-01 20:13
memberLiam OHagan20-Aug-01 20:13 
GeneralRe: COleDateTimeSpan wierdness.... Pin
Kelly Herald21-Aug-01 17:13
memberKelly Herald21-Aug-01 17:13 
GeneralRe: COleDateTimeSpan wierdness.... Pin
Liam OHagan21-Aug-01 20:54
memberLiam OHagan21-Aug-01 20:54 
GeneralSome body Help me !!! Pin
quangpm09a20-Aug-01 15:16
memberquangpm09a20-Aug-01 15:16 
GeneralRe: Some body Help me !!! Pin
Sam C20-Aug-01 15:46
memberSam C20-Aug-01 15:46 
QuestionIt's friggin HUGE! Is VC++ on crack? Pin
Todd Smith20-Aug-01 14:04
memberTodd Smith20-Aug-01 14:04 
AnswerRe: It's friggin HUGE! Is VC++ on crack? Pin
CodeGuy21-Aug-01 2:09
memberCodeGuy21-Aug-01 2:09 
QuestionOnly got a .dll file; Now what?? Pin
Anonymous20-Aug-01 12:55
memberAnonymous20-Aug-01 12:55 
AnswerRe: Only got a .dll file; Now what?? Pin
Benner20-Aug-01 14:18
memberBenner20-Aug-01 14:18 
AnswerRe: Only got a .dll file; Now what?? Pin
Sagiv20-Aug-01 20:40
memberSagiv20-Aug-01 20:40 
AnswerRe: Only got a .dll file; Now what?? Pin
Mukkie21-Aug-01 7:08
memberMukkie21-Aug-01 7:08 
QuestionHow to add non MFC classes to the Class Wizard Pin
Bruno Vais20-Aug-01 12:26
memberBruno Vais20-Aug-01 12:26 
AnswerRe: How to add non MFC classes to the Class Wizard Pin
BogdanO20-Aug-01 20:52
memberBogdanO20-Aug-01 20:52 
AnswerRe: How to add non MFC classes to the Class Wizard Pin
Malcolm McMahon21-Aug-01 0:48
memberMalcolm McMahon21-Aug-01 0:48 
GeneralStretchBlt Pin
RichardJacko20-Aug-01 11:58
memberRichardJacko20-Aug-01 11:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Advertise | Privacy | Mobile
Web02 | 2.8.160826.1 | Last Updated 27 Aug 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid