Xojo Conferences
XDCMay2019MiamiUSA

Window handle problems (Real Studio Plugins Mailinglist archive)

Back to the thread list
Previous thread: Returning date
Next thread: REALBuildPictureFromBuffer's rowBytes argument ?


macosx and unix paths   -   GOLD
  Window handle problems   -   Dan Cooper

Window handle problems
Date: 01.11.04 11:21 (Mon, 01 Nov 2004 10:21:36 +0000)
From: Dan Cooper
I think I've narrowed my problem down to the window handle or module
handle being wrong because if I create a window using CreateWindowEx()
and don't specify WS_CHILD, it work fine but in another window.

I am using the code (In the Open event):

HWND winRef = (HWND)REALGetControlHandle(instance);
HINSTANCE hInstance = (HINSTANCE)GetWindowLong(winRef, GWL_HINSTANCE);

But both return as 0 which I believe is where my problem lies, any ideas
where I'm going wrong? I have searched the archives but can't find a
solution.

Thanks,
Dan.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>