Click here to Skip to main content
16,007,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWinInet - order of asynchronious messages Pin
_danny_31-Jan-03 11:07
suss_danny_31-Jan-03 11:07 
GeneralDrawing transparent bitmap in a dialogbar Pin
MemLeak31-Jan-03 10:35
MemLeak31-Jan-03 10:35 
GeneralFunction Pointer Pin
act_x31-Jan-03 9:23
act_x31-Jan-03 9:23 
GeneralRe: Function Pointer Pin
Joaquín M López Muñoz31-Jan-03 9:49
Joaquín M López Muñoz31-Jan-03 9:49 
GeneralRe: Function Pointer Pin
Erik Funkenbusch31-Jan-03 10:40
Erik Funkenbusch31-Jan-03 10:40 
Generalmfc - .net - casting data types Pin
mmilano31-Jan-03 9:14
mmilano31-Jan-03 9:14 
GeneralRe: mfc - .net - casting data types Pin
Joaquín M López Muñoz31-Jan-03 9:59
Joaquín M López Muñoz31-Jan-03 9:59 
GeneralRun Override Pin
Dov Sherman31-Jan-03 8:49
Dov Sherman31-Jan-03 8:49 
I'm working on an MDI application and I wanted to do some custom handling for certain types of messages so I'm overriding the Run() function of my app like so:

<br />
int CMyApp::Run()<br />
{<br />
	MSG msg;<br />
	while(1)<br />
	{<br />
		if(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))<br />
		{<br />
			if(msg.message == WM_QUIT)<br />
				break;<br />
			TranslateMessage(&msg);<br />
			DispatchMessage(&msg);<br />
		}<br />
		else<br />
		{<br />
			// Idle<br />
			OnIdle(1);<br />
		}<br />
	}<br />
	return msg.wParam;<br />
}<br />


This seems to work perfectly for some aspects since menus and the views for my documents are responding correctly to my mouse and keyboard events. However, all the ON_UPDATE_COMMAND_UI events for my toolbars have suddenly stopped receiving messages. What did I do wrong?
GeneralRe: Run Override Pin
Joaquín M López Muñoz31-Jan-03 10:06
Joaquín M López Muñoz31-Jan-03 10:06 
GeneralRe: Run Override Pin
Neville Franks31-Jan-03 10:11
Neville Franks31-Jan-03 10:11 
GeneralRe: Run Override Pin
Dov Sherman31-Jan-03 15:38
Dov Sherman31-Jan-03 15:38 
GeneralRe: Run Override Pin
Neville Franks1-Feb-03 11:09
Neville Franks1-Feb-03 11:09 
GeneralBinding GDIPLUS.DLL to EXE file ! Pin
Alex H 198331-Jan-03 8:52
Alex H 198331-Jan-03 8:52 
QuestionCMonthCalendar : how to use it ? Pin
youssef31-Jan-03 8:50
youssef31-Jan-03 8:50 
Generalicon with mousemove notification Pin
m_strdewanata31-Jan-03 7:29
m_strdewanata31-Jan-03 7:29 
GeneralMFC VC++6.0 ClistCtrl with editboxes Pin
hpark31-Jan-03 6:15
hpark31-Jan-03 6:15 
GeneralRe: MFC VC++6.0 ClistCtrl with editboxes Pin
Michael P Butler1-Feb-03 0:20
Michael P Butler1-Feb-03 0:20 
GeneralLinker bug in Visual Studio .net Pin
valtrig31-Jan-03 5:58
valtrig31-Jan-03 5:58 
Questioneof error? Pin
will138331-Jan-03 5:28
will138331-Jan-03 5:28 
AnswerRe: eof error? Pin
valikac31-Jan-03 5:41
valikac31-Jan-03 5:41 
GeneralRe: eof error? Pin
will138331-Jan-03 7:31
will138331-Jan-03 7:31 
GeneralRe: eof error? Pin
Tim Smith31-Jan-03 8:03
Tim Smith31-Jan-03 8:03 
GeneralRe: eof error? Pin
will138331-Jan-03 8:07
will138331-Jan-03 8:07 
Generalusing sream-in of CRichEditCtrl Pin
includeh1031-Jan-03 5:18
includeh1031-Jan-03 5:18 
GeneralThe prompt for toolbar buttons Pin
ns31-Jan-03 5:07
ns31-Jan-03 5:07 

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.