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. Getting Property Sheet Handle

Getting Property Sheet Handle

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
3 Posts 2 Posters 1 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
    koumodaki
    wrote on last edited by
    #1

    I have created Property Sheet and Pages using Win32 SDK. Now I need to modify a edit box on a Page. The piece of code is HWND hPropSheet = GetActiveWindow(); HWND hPropPage0=PropSheet_GetCurrentPageHwnd(hDlg); SetDlgItemText(hPropPage0,IDC_EDIT1,(LPCWSTR)szBuffer); Is this correct? I am not able to get the Handle to window to the Property Sheet ..... Please help :confused:

    D 1 Reply Last reply
    0
    • K koumodaki

      I have created Property Sheet and Pages using Win32 SDK. Now I need to modify a edit box on a Page. The piece of code is HWND hPropSheet = GetActiveWindow(); HWND hPropPage0=PropSheet_GetCurrentPageHwnd(hDlg); SetDlgItemText(hPropPage0,IDC_EDIT1,(LPCWSTR)szBuffer); Is this correct? I am not able to get the Handle to window to the Property Sheet ..... Please help :confused:

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      koumodaki wrote:

      HWND hPropPage0=PropSheet_GetCurrentPageHwnd(hDlg);

      What is hDlg?

      "Love people and use things, not love things and use people." - Unknown

      "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

      K 1 Reply Last reply
      0
      • D David Crow

        koumodaki wrote:

        HWND hPropPage0=PropSheet_GetCurrentPageHwnd(hDlg);

        What is hDlg?

        "Love people and use things, not love things and use people." - Unknown

        "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

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

        Oops my bad. its HWND hPropPage0=PropSheet_GetCurrentPageHwnd(hPropSheet ); Sorry for the confusion. :doh:

        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