This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Registering a window class inside a class....


Registering a window class inside a class....

Postby superman » Jul 2, 2002 @ 5:04am

"Kittens give Morbo gas." - Morbo the News Monster
User avatar
superman
pm Member
 
Posts: 99
Joined: Nov 3, 2001 @ 1:09am


Postby Dan East » Jul 2, 2002 @ 9:39am

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby superman » Jul 4, 2002 @ 11:39pm

"Kittens give Morbo gas." - Morbo the News Monster
User avatar
superman
pm Member
 
Posts: 99
Joined: Nov 3, 2001 @ 1:09am


Postby Dan East » Jul 5, 2002 @ 5:52am

I have never needed to change the WinProc on the fly, but you should be able to as you say with SetWindowLong, using the GWL_WNDPROC flag. Oddly the Windows CE docs do not list that flag in the table with the other values, but mentions it further below in the "Remarks" section.

DEXplor uses MFC a great deal. If you've ever used DEXplor, you may note that it contains several advanced hybrid controls, all using MFC (Settings Tree, Tree List, Custom Menus, custom Header controls, etc). The full source code to MFC is available (and included with the standard SDKs), which makes it easy to get down and dirty and achieve the desired control. You can always revert to object handles (HWND, etc), and use standard API calls when needed.

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum