Click here to Skip to main content
16,010,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to know if the app is running from a server ?? Pin
Cris15-Jan-03 23:45
Cris15-Jan-03 23:45 
GeneralRe: How to know if the app is running from a server ?? Pin
Erik Juhl16-Jan-03 4:55
Erik Juhl16-Jan-03 4:55 
GeneralCHtmlView Pin
Brian Delahunty15-Jan-03 5:49
Brian Delahunty15-Jan-03 5:49 
GeneralRe: CHtmlView Pin
Stephane Rodriguez.15-Jan-03 6:36
Stephane Rodriguez.15-Jan-03 6:36 
GeneralRe: CHtmlView Pin
Brian Delahunty15-Jan-03 7:23
Brian Delahunty15-Jan-03 7:23 
GeneralRe: CHtmlView Pin
HENDRIK R17-Jan-03 2:22
HENDRIK R17-Jan-03 2:22 
GeneralRe: CHtmlView Pin
Brian Delahunty17-Jan-03 2:49
Brian Delahunty17-Jan-03 2:49 
GeneralDestroyWindow Pin
georgiek5015-Jan-03 5:27
georgiek5015-Jan-03 5:27 
I have a modeless dialog box placed on a modeless dialog box when I am updating some information which takes some time. I call DestroyWindow to end the dialog when the process is done but rarely (don't know why, can't reproduce the results reliably) The dialog turns white ( the overlying one) and no information is entered into the controls unless I click on the window.
This is the code for the dialog:
BOOL CALLBACK WaitDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
	switch(message)
	{
	
		case WM_INITDIALOG:
			SetCapture(hDlg);

			SetCursor( (HCURSOR) LoadCursor(NULL, IDC_WAIT));

			return TRUE;
		
		case WM_DESTROY:			
			ReleaseCapture();

			SetCursor( (HCURSOR) LoadCursor(NULL, IDC_ARROW));

			return TRUE;
	}

	return FALSE;
}


Does it have something to do with SetCapture and ReleaseCapture. I make sure I call UpdateWindow after I call DestroyWindow but still sometimes it happens. What is the reason for this problem?
GeneralRe: DestroyWindow Pin
Nitron15-Jan-03 14:29
Nitron15-Jan-03 14:29 
GeneralRe: DestroyWindow Pin
georgiek5016-Jan-03 5:49
georgiek5016-Jan-03 5:49 
GeneralDebug ActiveX control from the client application... Pin
Braulio Dez15-Jan-03 5:01
Braulio Dez15-Jan-03 5:01 
GeneralRe: Debug ActiveX control from the client application... Pin
AlexO15-Jan-03 5:20
AlexO15-Jan-03 5:20 
GeneralMSChart Pin
Matthew R. Miller15-Jan-03 4:52
Matthew R. Miller15-Jan-03 4:52 
GeneralRe: MSChart Pin
Nitron15-Jan-03 14:31
Nitron15-Jan-03 14:31 
GeneralInstallation tool Pin
Anthony B.15-Jan-03 4:47
Anthony B.15-Jan-03 4:47 
GeneralRe: Installation tool Pin
Nitron15-Jan-03 14:33
Nitron15-Jan-03 14:33 
QuestionKeyboardhook and Hotkey? Pin
Aidman15-Jan-03 3:43
Aidman15-Jan-03 3:43 
AnswerRe: Keyboardhook and Hotkey? Pin
Dudi Avramov15-Jan-03 4:42
Dudi Avramov15-Jan-03 4:42 
GeneralCstring to char* Pin
citroen15-Jan-03 3:36
citroen15-Jan-03 3:36 
GeneralRe: Cstring to char* Pin
Nitron15-Jan-03 3:52
Nitron15-Jan-03 3:52 
GeneralRe: Cstring to char* Pin
citroen15-Jan-03 6:05
citroen15-Jan-03 6:05 
GeneralRe: Cstring to char* Pin
Nitron15-Jan-03 6:36
Nitron15-Jan-03 6:36 
GeneralRe: Cstring to char* Pin
citroen15-Jan-03 21:34
citroen15-Jan-03 21:34 
GeneralRe: Cstring to char* Pin
Nitron16-Jan-03 3:17
Nitron16-Jan-03 3:17 
GeneralRe: Cstring to char* Pin
Michael Dunn15-Jan-03 7:17
sitebuilderMichael Dunn15-Jan-03 7:17 

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.