Click here to Skip to main content
16,013,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Basic GDI question [found it] Pin
Nish Nishant2-Jun-02 20:23
sitebuilderNish Nishant2-Jun-02 20:23 
GeneralRe: Basic GDI question Pin
Mike Nordell3-Jun-02 23:04
Mike Nordell3-Jun-02 23:04 
GeneralRe: Basic GDI question Pin
Nish Nishant3-Jun-02 23:18
sitebuilderNish Nishant3-Jun-02 23:18 
QuestionHow telling Windows I'm idle in message loop? Pin
2-Jun-02 18:38
suss2-Jun-02 18:38 
AnswerRe: How telling Windows I'm idle in message loop? Pin
Michael Dunn2-Jun-02 18:39
sitebuilderMichael Dunn2-Jun-02 18:39 
GeneralRe: How telling Windows I'm idle in message loop? Pin
2-Jun-02 18:46
suss2-Jun-02 18:46 
GeneralRe: How telling Windows I'm idle in message loop? Pin
Paul M Watt2-Jun-02 19:49
mentorPaul M Watt2-Jun-02 19:49 
GeneralRe: How telling Windows I'm idle in message loop? Pin
3-Jun-02 5:34
suss3-Jun-02 5:34 
kilowatt wrote:
I am just curious, how did you end up doing it?

I'll block with WaitMessage() when there is no window visible. Member variable m_data.bVisible is set in my WindowProc callback handler (have a look on WM_SIZE).

BOOL CBlueSharkEngineWindow::PumpMessage()
{
	assert(m_data.bCreated);
	assert(m_pInterface);

	MSG msg;
	while (::PeekMessage (&msg,NULL,0,0,PM_NOREMOVE))	
	{
		if (!::GetMessage (&msg, NULL, 0, 0)) 
		{
			m_pInterface->pConsole->Logfile(SHARKENGINE_LOG_DEBUG3, "Quit message received");
			return FALSE;			
		}

		::TranslateMessage (&msg);
		::DispatchMessage (&msg);
	}

	if(!m_data.bVisible) WaitMessage();
	
	return TRUE;
}

Greets, Moak
AnswerRe: How telling Windows I'm idle in message loop? Pin
Alexandru Savescu2-Jun-02 21:47
Alexandru Savescu2-Jun-02 21:47 
Questionredirecting mouse button ?? Pin
Alek2-Jun-02 18:01
Alek2-Jun-02 18:01 
AnswerRe: redirecting mouse button ?? Pin
Paul M Watt2-Jun-02 18:29
mentorPaul M Watt2-Jun-02 18:29 
Questionwhats this macro do? Pin
2-Jun-02 16:56
suss2-Jun-02 16:56 
AnswerRe: whats this macro do? Pin
Paul M Watt2-Jun-02 17:45
mentorPaul M Watt2-Jun-02 17:45 
GeneralRe: whats this macro do? Pin
2-Jun-02 18:04
suss2-Jun-02 18:04 
Questionhide a button? Pin
2-Jun-02 13:19
suss2-Jun-02 13:19 
AnswerRe: hide a button? Pin
Nish Nishant2-Jun-02 15:01
sitebuilderNish Nishant2-Jun-02 15:01 
AnswerRe: hide a button? Pin
Paul M Watt2-Jun-02 18:00
mentorPaul M Watt2-Jun-02 18:00 
GeneralCan't get rid of error Pin
2-Jun-02 13:17
suss2-Jun-02 13:17 
GeneralRe: Can't get rid of error Pin
Rama Krishna Vavilala2-Jun-02 15:13
Rama Krishna Vavilala2-Jun-02 15:13 
GeneralMessage Closed Pin
2-Jun-02 15:18
User 387462-Jun-02 15:18 
QuestionOnly ".NET". What then? Pin
WREY2-Jun-02 12:11
WREY2-Jun-02 12:11 
AnswerRe: Only ".NET". What then? Pin
Domenic Denicola2-Jun-02 12:52
Domenic Denicola2-Jun-02 12:52 
GeneralRe: Only ".NET". What then? Pin
Ed Gadziemski3-Jun-02 11:40
professionalEd Gadziemski3-Jun-02 11:40 
QuestionHow to get Device Context of Picture Box Pin
Speedy2-Jun-02 11:55
Speedy2-Jun-02 11:55 
AnswerRe: How to get Device Context of Picture Box Pin
moliate2-Jun-02 15:39
moliate2-Jun-02 15:39 

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.