Click here to Skip to main content
15,919,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDo I have to open Add variable wizard at each variable adding in VS2003 ? Pin
Gem21-Feb-04 1:04
Gem21-Feb-04 1:04 
GeneralNetmeeting API Pin
Shah Shehpori20-Feb-04 23:21
sussShah Shehpori20-Feb-04 23:21 
Generalmemcpy hourglass Pin
shinay20-Feb-04 23:02
shinay20-Feb-04 23:02 
GeneralRe: memcpy hourglass Pin
Balkrishna Talele20-Feb-04 23:25
Balkrishna Talele20-Feb-04 23:25 
GeneralRe: memcpy hourglass Pin
Tim Smith21-Feb-04 5:58
Tim Smith21-Feb-04 5:58 
GeneralSaving mails from pop3 server Pin
Sunrath20-Feb-04 21:36
Sunrath20-Feb-04 21:36 
GeneralFocus problem Pin
Wizard_0120-Feb-04 21:08
Wizard_0120-Feb-04 21:08 
GeneralRe: Focus problem Pin
Balkrishna Talele20-Feb-04 22:31
Balkrishna Talele20-Feb-04 22:31 
HEllo,

Step 1)
BEGIN_MESSAGE_MAP(CMYCLASS)
MESSAGE_HANDLER(OnFocus,WM_SETFOCUS)
.
.
END_MESSAGE_MAP

LRESULT OnFocus(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);

or
Step *)
Just use SetFocus()

or

If you are not getting mosuse events and other focus, then you will have to use message map of NCHITTEST


BEGIN_MESSAGE_MAP(CMYCLASS)
MESSAGE_HANDLER(OnNChitTest,WM_NCHITTEST)
.
.
END_MESSAGE_MAP

LRESULT OnNChitTest(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);

LRESULT CMYCLASS::OnNChitTest(int idCtrl, LPNMHDR pnmh, BOOL& bHandled
{
return HTCLIENT;
}

thats all,
if you didnt solve the problem, send you code to me, I shall try to solve it,

cheers
Balkrishna Talele



GeneralRe: Focus problem Pin
Wizard_0120-Feb-04 22:49
Wizard_0120-Feb-04 22:49 
GeneralRe: Focus problem Pin
Balkrishna Talele20-Feb-04 22:53
Balkrishna Talele20-Feb-04 22:53 
GeneralRe: Focus problem Pin
Wizard_0120-Feb-04 23:13
Wizard_0120-Feb-04 23:13 
GeneralRe: Focus problem Pin
Balkrishna Talele20-Feb-04 23:21
Balkrishna Talele20-Feb-04 23:21 
GeneralRe: Focus problem Pin
Wizard_0120-Feb-04 23:57
Wizard_0120-Feb-04 23:57 
GeneralRe: Focus problem Pin
Chris Richardson21-Feb-04 13:13
Chris Richardson21-Feb-04 13:13 
GeneralProblem using Crystal Report 6 Pin
DjChris1420-Feb-04 19:24
DjChris1420-Feb-04 19:24 
GeneralRe: Problem using Crystal Report 6 Pin
Steve S22-Feb-04 22:32
Steve S22-Feb-04 22:32 
GeneralClass Design Question Pin
Nick Parker20-Feb-04 16:33
protectorNick Parker20-Feb-04 16:33 
GeneralRe: Class Design Question Pin
Michael Dunn20-Feb-04 17:04
sitebuilderMichael Dunn20-Feb-04 17:04 
GeneralRe: Class Design Question Pin
Prakash Nadar20-Feb-04 17:13
Prakash Nadar20-Feb-04 17:13 
GeneralRegex Parser Pin
monrobot1320-Feb-04 14:33
monrobot1320-Feb-04 14:33 
GeneralMFC Worker Thread Question Pin
Dev57820-Feb-04 14:07
Dev57820-Feb-04 14:07 
GeneralRe: MFC Worker Thread Question Pin
Prakash Nadar20-Feb-04 14:30
Prakash Nadar20-Feb-04 14:30 
GeneralRe: MFC Worker Thread Question Pin
Dev57820-Feb-04 14:47
Dev57820-Feb-04 14:47 
GeneralRe: MFC Worker Thread Question Pin
J.B.20-Feb-04 15:05
J.B.20-Feb-04 15:05 
GeneralRe: MFC Worker Thread Question Pin
Dev57820-Feb-04 16:09
Dev57820-Feb-04 16:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.