Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

sascha billian

@sascha billian
About
Posts
5
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Creating a SDI window from a dialog (MFC)
    S sascha billian

    Hi Mike, That sounds like a good idea. As soon as my colleague is at the office we'll try that. Thanks so far. Sascha

    C / C++ / MFC help c++ tutorial question

  • Creating a SDI window from a dialog (MFC)
    S sascha billian

    correct. any clues? thanks Sascha

    C / C++ / MFC help c++ tutorial question

  • Creating a SDI window from a dialog (MFC)
    S sascha billian

    Yes, the window appears. I haven't the code here, because i'm at home, but the window shows as it should. but there's one thing i forgot to tell you. The problem problem occured, when we tried to gray out a button in the toolbar by clicking on another toolbar button. It didn't gray out. BUT: in the menu bar, if i try the same with the menu items which are linked with the buttons (same id), one item is grayed out when clicking the other: this is the code which is used to create the doc/view and show the window: CSingleDocTemplate* pDocTemplate; pDocTemplate = new CSingleDocTemplate( IDR_MAINFRAME, RUNTIME_CLASS(CSDI_LeerDoc), RUNTIME_CLASS(CMainFrame), RUNTIME_CLASS(CSDI_LeerView)); AddDocTemplate(pDocTemplate); CCommandLineInfo cmdInfo; ParseCommandLine(cmdInfo); if (!ProcessShellCommand(cmdInfo)) return FALSE; m_pMainWnd->ShowWindow(SW_SHOW); m_pMainWnd->UpdateWindow(); ... thanks! Sascha

    C / C++ / MFC help c++ tutorial question

  • Creating a SDI window from a dialog (MFC)
    S sascha billian

    Hi there! We've got a real big problem, allthough it seems to be not really difficult: Our main application is a dialog which definitely MUST remain a dialog. My colleague wants to create a SDI window from this dialog by clicking on a specific button. Still no problem. The problem ist, that the window seems not to get the windows messages: Usually if you create a method to handle a mouseclick on a button in the toolbar, you can also create a function OnUpdateClickXXX(CCmdUI* pCmdUI) for example you could gray a specific button, if ButtonXXX is being clicked on. But OnUpdateClickXXX is never called! For me it seems, that the WM_PAINT message is being processed just by the dialog. the SDI window is created with CSingleDocTemplate* pDocTemplate; pDocTemplate = new CSingleDocTemplate( IDR_MAINFRAME, RUNTIME_CLASS(CSDI_LeerDoc), RUNTIME_CLASS(CMainFrame), RUNTIME_CLASS(CSDI_LeerView)); AfxGetApp()->AddDocTemplate(pDocTemplate); //because i am in the dialog, i have to call AfxGetApp() to register the doctemplate with the application when you click on a button in the dialog. All OnClickBlah, OnUpdateBlah... methods are inserted by the class wizard, and the AFX_MESSAGE_MAP has the correct ON_COMMAND, ON_UPDATE_COMMAND...entries Could you give us some hints, where we could look for that problem? Sure, the problem is caused by the dialog "standing" between the application and the doc/view. Thank you all, and i hope you can help us with our problem. Sascha Billian Sascha Billian

    C / C++ / MFC help c++ tutorial question

  • Creating a SDI window from a dialog
    S sascha billian

    Hi there! [edit]: Sorry, wrong Message board. I'll post it on the VC++/MFC Board [/edit] We've got a real big problem, allthough it seems to be not really difficult: Our main application is a dialog which definitely MUST remain a dialog. My colleague wants to create a SDI window from this dialog by clicking on a specific button. Still no problem. The problem ist, that the window seems not to get the windows messages: Usually if you create a method to handle a mouseclick on a button in the toolbar, you can also create a function OnUpdateClickXXX(CCmdUI* pCmdUI) for example you could gray a specific button, if ButtonXXX is being clicked on. But OnUpdateClickXXX is never called! For me it seems, that the WM_PAINT message is being processed just by the dialog. the SDI window is created with CSingleDocTemplate* pDocTemplate; pDocTemplate = new CSingleDocTemplate( IDR_MAINFRAME, RUNTIME_CLASS(CSDI_LeerDoc), RUNTIME_CLASS(CMainFrame), RUNTIME_CLASS(CSDI_LeerView)); AfxGetApp()->AddDocTemplate(pDocTemplate); //because i am in the dialog, i have to call AfxGetApp() to register the doctemplate with the application when you click on a button in the dialog. All OnClickBlah, OnUpdateBlah... methods are inserted by the class wizard, and the AFX_MESSAGE_MAP has the correct ON_COMMAND, ON_UPDATE_COMMAND...entries Could you give us some hints, where we could look for that problem? Sure, the problem is caused by the dialog "standing" between the application and the doc/view. Thank you all, and i hope you can help us with our problem. Sascha Billian

    Windows Forms c++ help tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups