Click here to Skip to main content
16,005,491 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: question.... Pin
joshfl22-Jan-03 5:49
joshfl22-Jan-03 5:49 
GeneralCListCtrl SetItemData() Problem Pin
Jonah Bishop21-Jan-03 16:39
Jonah Bishop21-Jan-03 16:39 
GeneralRe: CListCtrl SetItemData() Problem Pin
Michael Dunn21-Jan-03 20:22
sitebuilderMichael Dunn21-Jan-03 20:22 
GeneralCFormView Accelerator Problem Pin
Jonah Bishop21-Jan-03 16:33
Jonah Bishop21-Jan-03 16:33 
GeneralDo Arab fonts require UNICODE??? (EOM) Pin
Paul M Watt21-Jan-03 15:52
mentorPaul M Watt21-Jan-03 15:52 
GeneralRe: Do Arab fonts require UNICODE??? (EOM) Pin
Maximilien22-Jan-03 2:42
Maximilien22-Jan-03 2:42 
GeneralRe: Do Arab fonts require UNICODE??? (EOM) Pin
Paul M Watt22-Jan-03 6:02
mentorPaul M Watt22-Jan-03 6:02 
GeneralMessage loops... Pin
LukeV21-Jan-03 14:59
LukeV21-Jan-03 14:59 
Hi,

I'm doing this project with ATL and I needed to use PumpMessage(..) but it's only available through MFC. So I looked at Mike Dunn's FAQ

http://www.codeproject.com/cpp/cppforumfaq.asp#ui_workerthread[^]

and did this:

void CSomeDlg::ProcessMessages()
{
	MSG msg;

  while ( PeekMessage ( &msg, NULL, 0, 0, PM_NOREMOVE ))
	{
		GetMessage (&msg, NULL, 0, 0);
		TranslateMessage (&msg);
    DispatchMessage (&msg);
	}
}


And I'm calling every few lines of code. Looks to work ok... Is this safe?

Thanks!
GeneralRe: Message loops... Pin
Christian Graus21-Jan-03 15:17
protectorChristian Graus21-Jan-03 15:17 
GeneralRe: Message loops... Pin
LukeV21-Jan-03 15:29
LukeV21-Jan-03 15:29 
GeneralRe: Message loops... Pin
Christian Graus21-Jan-03 21:02
protectorChristian Graus21-Jan-03 21:02 
GeneralRe: Message loops... Pin
Michael Dunn21-Jan-03 20:28
sitebuilderMichael Dunn21-Jan-03 20:28 
GeneralEmail Address Extraction Pin
carrie21-Jan-03 12:26
carrie21-Jan-03 12:26 
GeneralRe: Email Address Extraction Pin
Larry Antram21-Jan-03 13:12
Larry Antram21-Jan-03 13:12 
GeneralRe: Email Address Extraction Pin
Christian Graus21-Jan-03 14:20
protectorChristian Graus21-Jan-03 14:20 
GeneralRe: Email Address Extraction Pin
Anonymous21-Jan-03 13:23
Anonymous21-Jan-03 13:23 
GeneralRe: Email Address Extraction Pin
Larry Antram21-Jan-03 13:21
Larry Antram21-Jan-03 13:21 
GeneralRe: Email Address Extraction Pin
bryce21-Jan-03 13:31
bryce21-Jan-03 13:31 
GeneralRe: Email Address Extraction Pin
Larry Antram21-Jan-03 13:35
Larry Antram21-Jan-03 13:35 
GeneralRe: Email Address Extraction Pin
carrie21-Jan-03 13:48
carrie21-Jan-03 13:48 
GeneralRe: Email Address Extraction Pin
Larry Antram21-Jan-03 13:52
Larry Antram21-Jan-03 13:52 
GeneralRe: Email Address Extraction Pin
carrie21-Jan-03 13:58
carrie21-Jan-03 13:58 
GeneralRe: Email Address Extraction Pin
Anonymous21-Jan-03 13:45
Anonymous21-Jan-03 13:45 
GeneralRe: Email Address Extraction Pin
Larry Antram21-Jan-03 13:47
Larry Antram21-Jan-03 13:47 
GeneralRe: Email Address Extraction Pin
Christian Graus21-Jan-03 15:19
protectorChristian Graus21-Jan-03 15: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.