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. Rezide dialog based application window

Rezide dialog based application window

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

    This is a simple question. I have a dialog based application window and i want to resize it before displayed on the screen. I used the PreCreateWindow and the SetWindowPos within OnInitDialog but without success. What i'm doing wrong?

    T N M 3 Replies Last reply
    0
    • J johnnyXP

      This is a simple question. I have a dialog based application window and i want to resize it before displayed on the screen. I used the PreCreateWindow and the SetWindowPos within OnInitDialog but without success. What i'm doing wrong?

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

      if you are into OnInitDialog, the dialog is already created and about to be displayed...


      TOXCCT >>> GEII power
      [toxcct][VisualCalc]

      1 Reply Last reply
      0
      • J johnnyXP

        This is a simple question. I have a dialog based application window and i want to resize it before displayed on the screen. I used the PreCreateWindow and the SetWindowPos within OnInitDialog but without success. What i'm doing wrong?

        N Offline
        N Offline
        namaskaaram
        wrote on last edited by
        #3

        calling the SetWindowPos() at the OnInitDialog should do!..... can u show us the code? cheerz.... :-D "faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13

        J 1 Reply Last reply
        0
        • J johnnyXP

          This is a simple question. I have a dialog based application window and i want to resize it before displayed on the screen. I used the PreCreateWindow and the SetWindowPos within OnInitDialog but without success. What i'm doing wrong?

          M Offline
          M Offline
          Marc Soleda
          wrote on last edited by
          #4

          You have to resize it when it's already created: OnInitDialog is a good place. Try MoveWindow if SetWindowPos doesn't work. Marc Soleda. ... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.

          1 Reply Last reply
          0
          • N namaskaaram

            calling the SetWindowPos() at the OnInitDialog should do!..... can u show us the code? cheerz.... :-D "faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13

            J Offline
            J Offline
            johnnyXP
            wrote on last edited by
            #5

            I had pass wrong value to the pWndInsertAfter parameter to SetWindowPos. Thans for your time.

            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