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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Another thought

Another thought

Scheduled Pinned Locked Moved C / C++ / MFC
question
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.
  • B Offline
    B Offline
    bugDanny
    wrote on last edited by
    #1

    I wrote a program that part of it involves closing other windows, but I run into some funny stuff if the window is minimized when I close it. Is there any way I can check to see if a window is minimized before closing it? I have the window handle. Yesterday is history Tomorrow's a mystery Today is a gift That's why they call it the present. Danny

    B U 2 Replies Last reply
    0
    • B bugDanny

      I wrote a program that part of it involves closing other windows, but I run into some funny stuff if the window is minimized when I close it. Is there any way I can check to see if a window is minimized before closing it? I have the window handle. Yesterday is history Tomorrow's a mystery Today is a gift That's why they call it the present. Danny

      B Offline
      B Offline
      Blake Miller
      wrote on last edited by
      #2

      IsIconic Function The IsIconic function determines whether the specified window is minimized (iconic). BOOL IsIconic( HWND hWnd );

      B 1 Reply Last reply
      0
      • B bugDanny

        I wrote a program that part of it involves closing other windows, but I run into some funny stuff if the window is minimized when I close it. Is there any way I can check to see if a window is minimized before closing it? I have the window handle. Yesterday is history Tomorrow's a mystery Today is a gift That's why they call it the present. Danny

        U Offline
        U Offline
        ugur_basak
        wrote on last edited by
        #3

        you can use CWnd::isIconic() this function. It return non zero it it is minimized, otherwise 0

        1 Reply Last reply
        0
        • B Blake Miller

          IsIconic Function The IsIconic function determines whether the specified window is minimized (iconic). BOOL IsIconic( HWND hWnd );

          B Offline
          B Offline
          bugDanny
          wrote on last edited by
          #4

          Thanx! Danny

          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