Click here to Skip to main content
15,911,360 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIMediaControl :: GetState() errors in DirectShow??? Pin
Saurabh_Delhi18-Oct-03 3:35
Saurabh_Delhi18-Oct-03 3:35 
AnswerRe: IMediaControl :: GetState() errors in DirectShow??? Pin
Alexander M.,18-Oct-03 12:55
Alexander M.,18-Oct-03 12:55 
GeneralStill problems with Points and CRect. Help please !! :( Pin
Rafael Fernández López18-Oct-03 3:32
Rafael Fernández López18-Oct-03 3:32 
GeneralRe: Still problems with Points and CRect. Help please !! :( Pin
includeh1018-Oct-03 6:11
includeh1018-Oct-03 6:11 
GeneralRe: Still problems with Points and CRect. Help please !! :( Pin
Rafael Fernández López18-Oct-03 12:30
Rafael Fernández López18-Oct-03 12:30 
GeneralRe: Still problems with Points and CRect. Help please !! :( Pin
Neville Franks18-Oct-03 12:45
Neville Franks18-Oct-03 12:45 
GeneralRe: Still problems with Points and CRect. Help please !! :( Pin
Rafael Fernández López19-Oct-03 2:01
Rafael Fernández López19-Oct-03 2:01 
GeneralIs this correct (modeless dialog box) Pin
Rickard Andersson2018-Oct-03 3:22
Rickard Andersson2018-Oct-03 3:22 
I've created my main window as a modeless dialog box and I'm not sure if I've used the messages for exiting the dialog box correct, this is my dialog box procedure:

BOOL CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
	PAINTSTRUCT ps;
	HDC hdc;

	switch(message) 
	{
	case WM_INITDIALOG:
		ShowWindow(hWnd, SW_SHOW); // Show main window
		return TRUE;
	case WM_PAINT:
		hdc = BeginPaint(hWnd, &ps);
		EndPaint(hWnd, &ps);
		break;
	case WM_CLOSE:
		DestroyWindow(hWnd);
		return FALSE; // TRUE or FALSE???
	case WM_DESTROY:
		PostQuitMessage(0); // Should I call this in WM_QUIT?
		return TRUE;
	}
	return FALSE;
}


Why I'm curious is because I'veseen some examples in MSDN that call DestroyWindow() in the WM_DESTROY message handler itselft. But that is when they've created a modeless child dialog box, I'm creating a modeless main dialog box.


Rickard Andersson
Here is my card, contact me later!

UIN: 50302279
Sonork: 37318

GeneralRe: Is this correct (modeless dialog box) Pin
includeh1018-Oct-03 6:23
includeh1018-Oct-03 6:23 
GeneralRelease build trouble Pin
Luuk Weltevreden18-Oct-03 1:50
Luuk Weltevreden18-Oct-03 1:50 
GeneralRe: Release build trouble Pin
Luuk Weltevreden18-Oct-03 2:44
Luuk Weltevreden18-Oct-03 2:44 
Questionprinter switched on or not? Pin
murali_utr18-Oct-03 0:47
murali_utr18-Oct-03 0:47 
GeneralMFC Dailog IDD Pin
cberam18-Oct-03 0:46
cberam18-Oct-03 0:46 
GeneralRe: MFC Dailog IDD Pin
murali_utr18-Oct-03 0:49
murali_utr18-Oct-03 0:49 
GeneralMicrosoft Access Driver Pin
OTVAC30517-Oct-03 23:19
OTVAC30517-Oct-03 23:19 
GeneralRe: Microsoft Access Driver Pin
Alexander M.,18-Oct-03 12:43
Alexander M.,18-Oct-03 12:43 
GeneralPoints and CRect Pin
Rafael Fernández López17-Oct-03 22:30
Rafael Fernández López17-Oct-03 22:30 
GeneralRe: Points and CRect Pin
Neville Franks17-Oct-03 23:18
Neville Franks17-Oct-03 23:18 
GeneralRe: Points and CRect Pin
Rafael Fernández López17-Oct-03 23:21
Rafael Fernández López17-Oct-03 23:21 
GeneralShallow copy Pin
bhangie17-Oct-03 21:28
bhangie17-Oct-03 21:28 
GeneralRe: Shallow copy Pin
Taka Muraoka17-Oct-03 22:32
Taka Muraoka17-Oct-03 22:32 
GeneralRe: Shallow copy Pin
Johann Gerell17-Oct-03 23:10
Johann Gerell17-Oct-03 23:10 
GeneralAdvice Required Pin
Ajit Jagannath17-Oct-03 20:24
Ajit Jagannath17-Oct-03 20:24 
GeneralRe: Advice Required Pin
Taka Muraoka17-Oct-03 22:17
Taka Muraoka17-Oct-03 22:17 
GeneralRe: Advice Required Pin
Ajit Jagannath18-Oct-03 2:57
Ajit Jagannath18-Oct-03 2:57 

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.