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. Event after ShowWindow()

Event after ShowWindow()

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
5 Posts 4 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.
  • T Offline
    T Offline
    tysh
    wrote on last edited by
    #1

    Hello :-O I would really appreciate any help on this... Is there any event or notification after the ShowWindow() function call? Is there any message indicating that the window has been shown for the first time? Thanks!

    T S M 3 Replies Last reply
    0
    • T tysh

      Hello :-O I would really appreciate any help on this... Is there any event or notification after the ShowWindow() function call? Is there any message indicating that the window has been shown for the first time? Thanks!

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      WM_WINDOWPOSCHANGED WM_WINDOWPOSCHANGING

      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

      cheers, Alok Gupta

      1 Reply Last reply
      0
      • T tysh

        Hello :-O I would really appreciate any help on this... Is there any event or notification after the ShowWindow() function call? Is there any message indicating that the window has been shown for the first time? Thanks!

        S Offline
        S Offline
        stolid_rock
        wrote on last edited by
        #3

        Is there any message indicating that the window has been shown for the first time? CWnd::PreCreateWindow method is called by the framework before the creation of the window attached to this CWnd object

        1 Reply Last reply
        0
        • T tysh

          Hello :-O I would really appreciate any help on this... Is there any event or notification after the ShowWindow() function call? Is there any message indicating that the window has been shown for the first time? Thanks!

          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #4

          The WM_SHOWWINDOW message is sent to a window when the window is about to be hidden or shown. There isn't a special message sent for the first show, so you'll have to keep a flag in the C++ class keeping track of whether WM_SHOWWINDOW has been sent before with wParam==TRUE. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD

          T 1 Reply Last reply
          0
          • M Michael Dunn

            The WM_SHOWWINDOW message is sent to a window when the window is about to be hidden or shown. There isn't a special message sent for the first show, so you'll have to keep a flag in the C++ class keeping track of whether WM_SHOWWINDOW has been sent before with wParam==TRUE. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD

            T Offline
            T Offline
            tysh
            wrote on last edited by
            #5

            Thanks a lot for your help, guys! :)

            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