Click here to Skip to main content
15,896,726 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: a simple question about global variable Pin
Malcolm McMahon21-Aug-01 0:36
Malcolm McMahon21-Aug-01 0:36 
Generalcrypt Pin
20-Aug-01 22:37
suss20-Aug-01 22:37 
GeneralRe: crypt Pin
Tim Deveaux21-Aug-01 6:15
Tim Deveaux21-Aug-01 6:15 
GeneralSerialization Pin
Nick Armstrong20-Aug-01 22:09
Nick Armstrong20-Aug-01 22:09 
GeneralRe: Serialization Pin
Niklas L20-Aug-01 22:32
Niklas L20-Aug-01 22:32 
GeneralHELP !!! CHARFORMAT2 and yHeight Pin
20-Aug-01 21:42
suss20-Aug-01 21:42 
GeneralMDI application Pin
The_Server20-Aug-01 21:14
The_Server20-Aug-01 21:14 
GeneralRe: MDI application Pin
Ulf Öhlén20-Aug-01 22:36
Ulf Öhlén20-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
20-Aug-01 20:21
suss20-Aug-01 20:21 
GeneralRe: Compress Pin
Christian Graus21-Aug-01 0:51
protectorChristian Graus21-Aug-01 0:51 
GeneralCOleDateTimeSpan wierdness.... Pin
Liam O'Hagan20-Aug-01 20:13
Liam O'Hagan20-Aug-01 20:13 
GeneralRe: COleDateTimeSpan wierdness.... Pin
Kelly Herald21-Aug-01 17:13
Kelly Herald21-Aug-01 17:13 
GeneralRe: COleDateTimeSpan wierdness.... Pin
Liam O'Hagan21-Aug-01 20:54
Liam O'Hagan21-Aug-01 20:54 
GeneralSome body Help me !!! Pin
quangpm09a20-Aug-01 15:16
quangpm09a20-Aug-01 15:16 
GeneralRe: Some body Help me !!! Pin
Sam C20-Aug-01 15:46
Sam C20-Aug-01 15:46 
QuestionIt's friggin HUGE! Is VC++ on crack? Pin
Todd Smith20-Aug-01 14:04
Todd Smith20-Aug-01 14:04 
AnswerRe: It's friggin HUGE! Is VC++ on crack? Pin
CodeGuy21-Aug-01 2:09
CodeGuy21-Aug-01 2:09 
QuestionOnly got a .dll file; Now what?? Pin
20-Aug-01 12:55
suss20-Aug-01 12:55 
AnswerRe: Only got a .dll file; Now what?? Pin
Ben Burnett20-Aug-01 14:18
Ben Burnett20-Aug-01 14:18 
AnswerRe: Only got a .dll file; Now what?? Pin
The_Server20-Aug-01 20:40
The_Server20-Aug-01 20:40 
AnswerRe: Only got a .dll file; Now what?? Pin
Mukkie21-Aug-01 7:08
Mukkie21-Aug-01 7:08 
QuestionHow to add non MFC classes to the Class Wizard Pin
20-Aug-01 12:26
suss20-Aug-01 12:26 
AnswerRe: How to add non MFC classes to the Class Wizard Pin
Orbital^20-Aug-01 20:52
Orbital^20-Aug-01 20:52 
AnswerRe: How to add non MFC classes to the Class Wizard Pin
Malcolm McMahon21-Aug-01 0:48
Malcolm McMahon21-Aug-01 0:48 
GeneralStretchBlt Pin
AJ12320-Aug-01 11:58
AJ12320-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.