Click here to Skip to main content
15,887,434 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem with Linked List Pin
CoffeeAddict1919-May-06 9:49
CoffeeAddict1919-May-06 9:49 
AnswerRe: Problem with Linked List Pin
led mike19-May-06 11:22
led mike19-May-06 11:22 
AnswerRe: Problem with Linked List Pin
_AnsHUMAN_ 19-May-06 18:33
_AnsHUMAN_ 19-May-06 18:33 
AnswerRe: Problem with Linked List Pin
Laxman Auti19-May-06 19:45
Laxman Auti19-May-06 19:45 
Questiontabstop Pin
sandem19-May-06 9:44
sandem19-May-06 9:44 
AnswerRe: tabstop Pin
Steve Echols19-May-06 19:34
Steve Echols19-May-06 19:34 
GeneralRe: tabstop Pin
sandem22-May-06 3:45
sandem22-May-06 3:45 
QuestionCView doesn't respond to PostMessage Pin
masnu19-May-06 9:26
masnu19-May-06 9:26 
I'm sure there is a simple solution to my problem but I'm just not seeing it. I'm trying to update my views as I read data from a file. I have implemented a separate thread so that the program is able to respond to other command while it is reading. Because of this I cannot use UpdateAllViews(). I tried using events, which worked, but with some undesired side effects. The next approach would be to post a message and have the views update on this. So far I have in my CDocument:

::PostMessage(HWND_BROADCAST, UWM_UPDATE_VIEW, 0, 0);

And in the CView I have:

BEGIN_MESSAGE_MAP(CAESView, CView)<br />
	ON_REGISTERED_MESSAGE(UWM_UPDATE_VIEW, Update)<br />
END_MESSAGE_MAP()<br />
<br />
LRESULT CAESView::Update(WPARAM wParam, LPARAM lParam)<br />
{<br />
	//Update views...<br />
	return 0;<br />
}


The code compiles and runs but my CView never responds to the message. Am I missing something?

Thanks.
AnswerRe: CView doesn't respond to PostMessage Pin
Mauro Leggieri19-May-06 9:41
Mauro Leggieri19-May-06 9:41 
AnswerRe: CView doesn't respond to PostMessage Pin
led mike19-May-06 11:17
led mike19-May-06 11:17 
AnswerRe: CView doesn't respond to PostMessage Pin
Nibu babu thomas19-May-06 18:47
Nibu babu thomas19-May-06 18:47 
QuestionIterators in forms Pin
mgodsey19-May-06 8:15
mgodsey19-May-06 8:15 
AnswerRe: Iterators in forms Pin
led mike19-May-06 8:56
led mike19-May-06 8:56 
GeneralRe: Iterators in forms Pin
mgodsey19-May-06 10:26
mgodsey19-May-06 10:26 
Questionget HiByte [modifed] Pin
big_denny_20019-May-06 7:59
big_denny_20019-May-06 7:59 
Questionget idd of object [modifed] Pin
big_denny_20019-May-06 6:51
big_denny_20019-May-06 6:51 
AnswerRe: get idd of object Pin
Cedric Moonen19-May-06 7:17
Cedric Moonen19-May-06 7:17 
AnswerRe: get idd of object Pin
David Crow19-May-06 7:20
David Crow19-May-06 7:20 
AnswerRe: get idd of object Pin
Michael Dunn19-May-06 7:21
sitebuilderMichael Dunn19-May-06 7:21 
GeneralRe: get idd of object Pin
big_denny_20019-May-06 7:36
big_denny_20019-May-06 7:36 
GeneralRe: get idd of object Pin
Michael Dunn19-May-06 7:38
sitebuilderMichael Dunn19-May-06 7:38 
GeneralRe: get idd of object Pin
big_denny_20019-May-06 7:45
big_denny_20019-May-06 7:45 
QuestionCustom Controls in MFC Pin
Paul Groetzner19-May-06 6:26
Paul Groetzner19-May-06 6:26 
AnswerRe: Custom Controls in MFC Pin
Cedric Moonen19-May-06 7:14
Cedric Moonen19-May-06 7:14 
QuestionRe: Custom Controls in MFC Pin
David Crow19-May-06 7:18
David Crow19-May-06 7:18 

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.