Click here to Skip to main content
15,891,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Function problems Pin
Stephen Hewitt9-Jan-07 12:39
Stephen Hewitt9-Jan-07 12:39 
GeneralRe: Function problems Pin
Stephen Hewitt9-Jan-07 12:41
Stephen Hewitt9-Jan-07 12:41 
AnswerRe: Function problems Pin
Christian Graus9-Jan-07 13:54
protectorChristian Graus9-Jan-07 13:54 
QuestionGood resource for MFC MDI application development?? Pin
pavanbabut9-Jan-07 10:44
pavanbabut9-Jan-07 10:44 
AnswerRe: Good resource for MFC MDI application development?? Pin
Mark Salsbery9-Jan-07 11:11
Mark Salsbery9-Jan-07 11:11 
GeneralRe: Good resource for MFC MDI application development?? Pin
pavanbabut9-Jan-07 11:18
pavanbabut9-Jan-07 11:18 
GeneralRe: Good resource for MFC MDI application development?? Pin
pavanbabut10-Jan-07 10:26
pavanbabut10-Jan-07 10:26 
GeneralRe: Good resource for MFC MDI application development?? Pin
Mark Salsbery10-Jan-07 10:40
Mark Salsbery10-Jan-07 10:40 
1) An easy way to see is create an MFC multiple document project using the project wizard and
look at what is in the application class' InitInstance() override.
I just did one and it creates the frame like this:
CMDIFrameWnd* pFrame = new CMainFrame;
if (!pFrame)
    return FALSE;
m_pMainWnd = pFrame;
// create main MDI frame window
if (!pFrame->LoadFrame(IDR_MAINFRAME))
    return FALSE;
// try to load shared MDI menus and accelerator table
//TODO: add additional member variables and load calls for
//  additional menu types your application may need
HINSTANCE hInst = AfxGetResourceHandle();
m_hMDIMenu  = ::LoadMenu(hInst, MAKEINTRESOURCE(IDR_TestMDITYPE));
m_hMDIAccel = ::LoadAccelerators(hInst, MAKEINTRESOURCE(IDR_TestMDITYPE));
// The main window has been initialized, so show and update it
pFrame->ShowWindow(m_nCmdShow);
pFrame->UpdateWindow();

2)3) Once you have the image size you can use MoveWindow to resize and reposition the child window
within the parent frame.

4) CStatusBar::SetPaneText() can be used to set the text of the status bar in response to
WM_MOUSEMOVE messages. For each message calculate the cursor position relative to the image,
convert the results to a string, and display the string in the status bar.
QuestionList control question Pin
David Crow9-Jan-07 10:24
David Crow9-Jan-07 10:24 
AnswerRe: List control question Pin
Michael Dunn9-Jan-07 13:27
sitebuilderMichael Dunn9-Jan-07 13:27 
QuestionIDE .rc file trivia question Pin
charlieg9-Jan-07 9:16
charlieg9-Jan-07 9:16 
AnswerRe: IDE .rc file trivia question Pin
David Crow9-Jan-07 9:58
David Crow9-Jan-07 9:58 
GeneralRe: IDE .rc file trivia question Pin
charlieg10-Jan-07 9:17
charlieg10-Jan-07 9:17 
QuestionRename a menu Resource Pin
#realJSOP9-Jan-07 7:15
mve#realJSOP9-Jan-07 7:15 
AnswerRe: Rename a menu Resource Pin
toxcct9-Jan-07 7:36
toxcct9-Jan-07 7:36 
AnswerRe: Rename a menu Resource Pin
James R. Twine9-Jan-07 7:56
James R. Twine9-Jan-07 7:56 
AnswerRe: Rename a menu Resource Pin
led mike9-Jan-07 9:22
led mike9-Jan-07 9:22 
QuestionWinCE developers? Pin
charlieg9-Jan-07 5:40
charlieg9-Jan-07 5:40 
QuestionCreating Dialog Problems Pin
Reagan Conservative9-Jan-07 5:39
Reagan Conservative9-Jan-07 5:39 
QuestionRe: Creating Dialog Problems Pin
RobertHuang12-Jan-07 5:22
RobertHuang12-Jan-07 5:22 
Questionwaiting for webbrowser::navigate Pin
rrrado9-Jan-07 5:17
rrrado9-Jan-07 5:17 
AnswerRe: waiting for webbrowser::navigate Pin
led mike9-Jan-07 5:23
led mike9-Jan-07 5:23 
GeneralRe: waiting for webbrowser::navigate Pin
rrrado9-Jan-07 5:29
rrrado9-Jan-07 5:29 
GeneralRe: waiting for webbrowser::navigate Pin
led mike9-Jan-07 5:55
led mike9-Jan-07 5:55 
GeneralRe: waiting for webbrowser::navigate Pin
rrrado9-Jan-07 20:57
rrrado9-Jan-07 20:57 

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.