Skip to main content
gamedev.net
🔒 Locked

Window Handle

Started by necreia 2 replies 600+ views
Original Post
necreia
necreia
Hello, currently working on a level editor, and I have 4 views. Is there any code I can put in (much like the DirectX 9 command 'GetWindowHandle( &hwnd )') in MFC? I have MFC breaking into 4 views, and I want to retrieve the window handle of 1 of the panes, any commands I can use (without DX9) to retreive that or is it already stored on a resource list? Thanks! Edit: Btw I have looked over the net and the MSDN library I just can't seem to find this answer, that's where I learned of the DX 9 command. [edited by - necreia on November 16, 2003 3:04:28 PM]
angry
angry
Doesn''t CWnd::GetSafeHwnd do that?
Endurion
Endurion
On every view you can call GetSafeHwnd(), you ought to have the handles to the four views already.
Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>
necreia
necreia
Yes it does... I had the worlds biggest brainfart.

Thank you though!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.