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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Initially visible dialog box

Initially visible dialog box

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kapgan
    wrote on last edited by
    #1

    How do I make my dialog box initially visible with MFC?

    Z 1 Reply Last reply
    0
    • K Kapgan

      How do I make my dialog box initially visible with MFC?

      Z Offline
      Z Offline
      zhang800605
      wrote on last edited by
      #2

      say detailedly . CDialog dlg; dlg.DoModal() ??

      K 1 Reply Last reply
      0
      • Z zhang800605

        say detailedly . CDialog dlg; dlg.DoModal() ??

        K Offline
        K Offline
        Kapgan
        wrote on last edited by
        #3

        I had tried that. Actually I want to use the dialog box as a toolbar, that is why i want it visible. I have .cpp and .h files for the toolbar class derived from CDialog. I included the .h file in MainFrm.cpp. I also have CToolBarNew m_wndToolBarNew; in the protected section ofCMainFrame class. But it still gives compiler error: missing storage-class or type specifiers

        E 1 Reply Last reply
        0
        • K Kapgan

          I had tried that. Actually I want to use the dialog box as a toolbar, that is why i want it visible. I have .cpp and .h files for the toolbar class derived from CDialog. I included the .h file in MainFrm.cpp. I also have CToolBarNew m_wndToolBarNew; in the protected section ofCMainFrame class. But it still gives compiler error: missing storage-class or type specifiers

          E Offline
          E Offline
          Ed K
          wrote on last edited by
          #4

          Kapgan wrote: I included the .h file in MainFrm.cpp. Put it in the MainFrm.h file. Why aren't you extending CToolBar? ed ~"Watch your thoughts; they become your words. Watch your words they become your actions. Watch your actions; they become your habits. Watch your habits; they become your character. Watch your character; it becomes your destiny." - -Uknown.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

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