Set/GetWindowLong doesn't seem work

Miron the Master miron-the-master@usa.net
Sun Feb 8 03:27:00 GMT 1998


Hi,
I'm workin on a small text editor. I use edit class for editing text.
Here's what I do:

1. Create new window using SendMessage & WM_MDICREATE
2. In document callback proc in respond to WM_CREATE i create EDIT window
using
hEdit = CreateWindowEx(...);
and remember edit handle
SetWindowLong(hwnd, 0, (LONG)hEdit);
And when i use GetWindowLong(hwnd, 0) to get edit handle I don't get it.

hEdit - edit handle
hwnd - parameter passed to document window proc.

Look at the sample source...

Thanx for all help.


Daniel Mironowicz                 miron-the-master@usa.net


-------------- next part --------------
A non-text attachment was scrubbed...
Name: EX.CC
Type: text/x-c
Size: 5713 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/19980208/fae0a1a3/attachment.bin>
-------------- next part --------------
#define IDM_NEW       100
#define IDM_CLOSE     101
#define IDM_TILE      102
#define IDM_CASCADE   103
#define IDM_ARRICONS  104

-------------- next part --------------
A non-text attachment was scrubbed...
Name: EX.RC
Type: text/x-c
Size: 341 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/19980208/fae0a1a3/attachment-0001.bin>


More information about the Cygwin mailing list