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. Setting Property Page edit box data

Setting Property Page edit box data

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
2 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.
  • K Offline
    K Offline
    koumodaki
    wrote on last edited by
    #1

    Posting this again ..... please help ********************************************** 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(hPropSheet ); 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

    D 1 Reply Last reply
    0
    • K koumodaki

      Posting this again ..... please help ********************************************** 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(hPropSheet ); 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

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

      koumodaki wrote:

      Is this correct?

      Shouldn't you be answering that question? Does the code compile? Does it produce the expected results?

      koumodaki wrote:

      I am not able to get the Handle to window to the Property Sheet

      So if GetActiveWindow() is not returning the correct handle, why bother calling PropSheet_GetCurrentPageHwnd() and SetDlgItemText()?

      "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

      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