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. MFC: Drawing within the client area of CMDIFrameWnd

MFC: Drawing within the client area of CMDIFrameWnd

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++graphics
4 Posts 2 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.
  • U Offline
    U Offline
    User 38276
    wrote on last edited by
    #1

    Hi. How can I acces for painting the client area of the main frame window (derived from CMDIFrameWnd) in multi-doc application? Thanks in advance... Juntek

    U 1 Reply Last reply
    0
    • U User 38276

      Hi. How can I acces for painting the client area of the main frame window (derived from CMDIFrameWnd) in multi-doc application? Thanks in advance... Juntek

      U Offline
      U Offline
      udayGovekar
      wrote on last edited by
      #2

      you have WM_PAINT message, that you can use to paint the client area

      U 1 Reply Last reply
      0
      • U udayGovekar

        you have WM_PAINT message, that you can use to paint the client area

        U Offline
        U Offline
        User 38276
        wrote on last edited by
        #3

        I've checked it already and it seems to not work, I'm afraid... thanks

        U 1 Reply Last reply
        0
        • U User 38276

          I've checked it already and it seems to not work, I'm afraid... thanks

          U Offline
          U Offline
          udayGovekar
          wrote on last edited by
          #4

          use this in ur mainframe.cpp file, this is not a member function long FAR PASCAL NewMDIClientProc(HWND hWnd,WORD wMesg,WORD wParam,LONG lParam) { switch (wMesg) { case WM_SIZE: { } case WM_PAINT: { } } }

          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