Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRemoving char from a string Pin
si_6921-Apr-05 23:05
si_6921-Apr-05 23:05 
GeneralRe: Removing char from a string Pin
22491722-Apr-05 0:28
22491722-Apr-05 0:28 
GeneralRe: Removing char from a string Pin
Juha Silmujarvi22-Apr-05 0:31
Juha Silmujarvi22-Apr-05 0:31 
Generalproblem using mailslot writeFile function on windows 2000. Pin
Member 176234321-Apr-05 22:56
Member 176234321-Apr-05 22:56 
GeneralRe: problem using mailslot writeFile function on windows 2000. Pin
22491722-Apr-05 0:35
22491722-Apr-05 0:35 
GeneralRe: problem using mailslot writeFile function on windows 2000. Pin
Member 176234322-Apr-05 1:55
Member 176234322-Apr-05 1:55 
GeneralRe: problem using mailslot writeFile function on windows 2000. Pin
22491722-Apr-05 2:06
22491722-Apr-05 2:06 
GeneralWM_KILLFOCUS Pin
Anonymous21-Apr-05 22:38
Anonymous21-Apr-05 22:38 
Hi,
I have to validate a field entry on kill focus of the edit control.If the user enters invalid data, a error message box should pop up and focus should remain on the edit control only so as to allow user to change the wrong entry. The problem is, this validation should not occur when user is exiting from the dialog like pressing cancel or exit. But when he clicks on the cancel button, kill foucs gets called and if the user has entered wrong data, error message will pop. Infact he won't be able to exit until he corrects the entry, which is ridiculous.
To avoid this problem, I switched validation from kill focus to SetFocus of the next control.
The program behaviour is --
User enters data in Control A
Then he puts cursor on Control B. Control B::On Set Focus validates the ControlA:data. IF wrong, pops up the message box and sets the focus to Control A.
But whenever user presess OK on the message box, focus again goes to Control B rather than going to Control A. Again validate is called and again the message box pops up. This goes in loop.
I didn't want to put the validations on En_change or use a bool vble for skipping the validations next time.
Any ideas will help a lot both on killfocus and setfocus front.
GeneralRe: WM_KILLFOCUS Pin
stolid_rock22-Apr-05 2:37
stolid_rock22-Apr-05 2:37 
GeneralRe: WM_KILLFOCUS Pin
David Crow22-Apr-05 2:40
David Crow22-Apr-05 2:40 
GeneralRe: WM_KILLFOCUS Pin
namaskaaram22-Apr-05 4:53
namaskaaram22-Apr-05 4:53 
Questionoutlook write contact with COleDispatchDriver/InvokeHelper? Pin
ThinkingPrometheus21-Apr-05 22:09
ThinkingPrometheus21-Apr-05 22:09 
QuestionEmail functions in MFC Aplications, SMTP? Pin
bosfan21-Apr-05 21:10
bosfan21-Apr-05 21:10 
AnswerRe: Email functions in MFC Aplications, SMTP? Pin
22491721-Apr-05 21:23
22491721-Apr-05 21:23 
GeneralRe: Email functions in MFC Aplications, SMTP? Pin
bosfan21-Apr-05 22:01
bosfan21-Apr-05 22:01 
GeneralRe: Email functions in MFC Aplications, SMTP? Pin
22491721-Apr-05 22:35
22491721-Apr-05 22:35 
QuestionUsing Dialog's from different projects in the same solution? Pin
jammin PPP21-Apr-05 20:53
jammin PPP21-Apr-05 20:53 
AnswerRe: Using Dialog's from different projects in the same solution? Pin
22491721-Apr-05 21:31
22491721-Apr-05 21:31 
AnswerRe: Using Dialog's from different projects in the same solution? Pin
wts77091922-Apr-05 1:59
wts77091922-Apr-05 1:59 
GeneralAccessing Ms Access database through a password using VC++ (ODBC) Pin
Shanmuga Sundar21-Apr-05 19:57
Shanmuga Sundar21-Apr-05 19:57 
GeneralRe: Accessing Ms Access database through a password using VC++ (ODBC) Pin
22491721-Apr-05 20:13
22491721-Apr-05 20:13 
Generalspin control Pin
laiju21-Apr-05 19:24
laiju21-Apr-05 19:24 
GeneralRe: spin control Pin
PJ Arends21-Apr-05 20:51
professionalPJ Arends21-Apr-05 20:51 
GeneralRe: spin control Pin
ddmcr22-Apr-05 2:06
ddmcr22-Apr-05 2:06 
Generalplease excel automation with mfc Pin
lee kyu sub21-Apr-05 17:19
lee kyu sub21-Apr-05 17:19 

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.