ugh I've been trying to get this to work for the past 2 days.
using GUI builder in Visual Studio 2008, I drag & dropped CEdit control on my single dialog application.
Then I added a variable to it - m_adrbox (not sure if I needed it)
At the top of the myDialogDlg.cpp source I modified my message map:
ok, first I changed my message map as I mentioned in the first post.
As I understand, from now on when CEdit control receives WM_CHAR message, it will let OnChar void to deal with it.
This is my OnChar void as it was referenced in the message map:
Each control has special messages/Notification, you should always use those Notifications related to that control, check it in MSDN. WM_KEYDOWN will be posted to windows and you may receive it if you want to get clicks from client area or other sections of that window (except other control sections inside it)
Bookmarks