Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I'd like to create a CWnd object that gets keyboard and mouse input, but I don't want to use the WNDCLASS of "EDIT" because this won't always be an edit. I want it to be owner draw.
// Something like this, but don't want to use "EDIT"
CRect Pos(50,200,200,220);
MyWnd.Create(_T("EDIT"),_T("MyInputWnd),WS_CHILD | WS_VISIBLE, Pos, this,1);


AfxRegisterClass() seems pretty complicated (am I wrong?), but is this the only way to do this?

Any ideas? Better yet any code snippets?

Thanks in advance.
Posted
Updated 5-May-11 9:37am
v2

1 solution

It really is not that complicated. Here is an editor based on CWnd: CUltraPadWnd - A Simple Syntax Coloring Control Based on the MFC CWnd Class[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900