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. hwndParent

hwndParent

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++comtutorial
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.
  • V Offline
    V Offline
    viperlogic
    wrote on last edited by
    #1

    I am just checking out sample code on MSDN as see below, i have created a basic MFC app using the wizard and copying the code below into it and made a few changes for it to run. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/example\_\_getting\_wmi\_data\_from\_the\_local\_computer.asp in the code "CredUIPromptForCredentials" is called but a dialog doesnt pop up when run. there is a line of code "cui.hwndParent = NULL;" should that not point to a parent window, how do i point it to a parent window, is it using HWND somehow? thx

    S 1 Reply Last reply
    0
    • V viperlogic

      I am just checking out sample code on MSDN as see below, i have created a basic MFC app using the wizard and copying the code below into it and made a few changes for it to run. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/example\_\_getting\_wmi\_data\_from\_the\_local\_computer.asp in the code "CredUIPromptForCredentials" is called but a dialog doesnt pop up when run. there is a line of code "cui.hwndParent = NULL;" should that not point to a parent window, how do i point it to a parent window, is it using HWND somehow? thx

      S Offline
      S Offline
      super
      wrote on last edited by
      #2

      Can you give a specific of code form your project. If you want to assign the parent window, please assign the handle of the main window. But I can be more helpful if you can give sepcific of your code cheers, Super ------------------------------------------ Too much of good is bad,mix some evil in it

      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