Results 1 to 2 of 2

Thread: Window instance

  1. #1
    ChimpFace9000
    Guest

    Post

    If i have a windows handle, how do i get its instance?

  2. #2
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    I'm guessing you mean the hInstance of the process which created it.
    Code:
    HINSTANCE hInst = (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width