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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
D

Developer101

@Developer101
About
Posts
4
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Getting document pointer
    D Developer101

    It's fine. I figured it out. In the past when I have added a command handler for a menu item, I have always just used the default in the drop down which is mainfrm. I removed that one, and selected my dialog in the list this time. It put the menu command handler in my document class this time, and all the data I want to display is in that class, so easy solution. :) Thanks for all the help.

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

  • Getting document pointer
    D Developer101

    I'll give the suggestions a try. Thank you. When I use the classwizard to create the onclick event, it put it in MainFrame: void CMainFrame::OnToolsShpproperties() { CDLGShpFileBreakdown dlgSHPBreakdown; dlgSHPBreakdown.DoModal(); } Your code will still work?

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

  • Getting document pointer
    D Developer101

    I have made a sdi application in MFC. I added a menu item, and a routine when it is clicked. That routine creates an instance of, and displays, an information dialog I created. What I need to do though is display some information in that dialog from the loaded in document. The biggest problem I always seem to have is finding out how to access the document in another class like my dialog class. So I am wondering what I need to do to get a document pointer to my dialog class. Either by passing it in from MainFrm when I create the dialog, or better yet, have my dialog class itself get a pointer to the document. Anyone have any ideas or code samples? I notice my view class has something like: CDXtoXDDoc* CDXtoXDView::GetDocument() // non-debug version is inline { ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CDXtoXDDoc))); return (CDXtoXDDoc*)m_pDocument; }

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

  • CListCtrl and backgrounds
    D Developer101

    I have a background in my CListCtrl. I don't want it to scroll though. How does one stop that from happening? Thanks for any help.

    C / C++ / MFC help 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