Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRandom seeding in C++ different to Java? Pin
c#_keithy29-Dec-08 6:16
c#_keithy29-Dec-08 6:16 
GeneralRe: Random seeding in C++ different to Java? Pin
Luc Pattyn29-Dec-08 6:26
sitebuilderLuc Pattyn29-Dec-08 6:26 
QuestionRe: Random seeding in C++ different to Java? Pin
CPallini29-Dec-08 7:50
mveCPallini29-Dec-08 7:50 
AnswerRe: Random seeding in C++ different to Java? Pin
BobInNJ29-Dec-08 9:44
BobInNJ29-Dec-08 9:44 
GeneralRe: Random seeding in C++ different to Java? Pin
CPallini29-Dec-08 10:07
mveCPallini29-Dec-08 10:07 
GeneralRe: Random seeding in C++ different to Java? Pin
BobInNJ29-Dec-08 10:33
BobInNJ29-Dec-08 10:33 
GeneralRe: Random seeding in C++ different to Java? Pin
Luc Pattyn29-Dec-08 10:43
sitebuilderLuc Pattyn29-Dec-08 10:43 
QuestionWM_USER ignored by View window? (CHtmlView) Pin
nobaq29-Dec-08 1:43
nobaq29-Dec-08 1:43 
Hi,

I am desperated: I want to send a WM_USER message to a CHtmlView but the message handler is never called Frown | :-(

In my *.h file I have:
#define WM_HYLGETCONTENT WM_USER + 79
afx_msg LRESULT OnHylGetContent(WPARAM wParam, LPARAM lParam);


In my *cpp file I have:

BEGIN_MESSAGE_MAP(CHyperlexView, CHtmlView)
	[...]
	ON_MESSAGE(WM_HYLGETCONTENT, OnHylGetContent)
END_MESSAGE_MAP()

[...].
afx_msg LRESULT CHyperlexView::OnHylGetContent(WPARAM wParam, LPARAM lParam)
{
	MessageBox("I get called!");
	return 1111;
}


But the function is never called Frown | :-(

I checked with Spy++: The message is sent successfully to the window but the LRESULT is 0 instead of 1111. The message does not appear too.

What could be the problem here?

I have also checked other values for WM_USER, I get the same result Frown | :(

Thank you,
Niki
AnswerRe: WM_USER ignored by View window? (CHtmlView) Pin
Roger Stoltz29-Dec-08 2:24
Roger Stoltz29-Dec-08 2:24 
AnswerRe: WM_USER ignored by View window? (CHtmlView) Pin
KASR129-Dec-08 19:21
KASR129-Dec-08 19:21 
Questionbinary search tree Pin
foshia29-Dec-08 1:30
foshia29-Dec-08 1:30 
AnswerRe: binary search tree Pin
Maximilien29-Dec-08 3:02
Maximilien29-Dec-08 3:02 
QuestionIntelliSense:'No additional information available' in VC++2005. Pin
Le@rner29-Dec-08 1:17
Le@rner29-Dec-08 1:17 
AnswerRe: IntelliSense:'No additional information available' in VC++2005. Pin
Hamid_RT29-Dec-08 1:31
Hamid_RT29-Dec-08 1:31 
GeneralRe: IntelliSense:'No additional information available' in VC++2005. Pin
Le@rner29-Dec-08 1:54
Le@rner29-Dec-08 1:54 
AnswerRe: IntelliSense:'No additional information available' in VC++2005. Pin
Jijo.Raj29-Dec-08 3:08
Jijo.Raj29-Dec-08 3:08 
AnswerRe: IntelliSense:'No additional information available' in VC++2005. Pin
Randor 29-Dec-08 8:39
professional Randor 29-Dec-08 8:39 
Questionchange background color of dialog Pin
zhiyuan1629-Dec-08 0:59
zhiyuan1629-Dec-08 0:59 
AnswerRe: change background color of dialog Pin
Malli_S29-Dec-08 1:04
Malli_S29-Dec-08 1:04 
GeneralRe: change background color of dialog Pin
zhiyuan1629-Dec-08 1:16
zhiyuan1629-Dec-08 1:16 
GeneralRe: change background color of dialog Pin
Malli_S29-Dec-08 1:24
Malli_S29-Dec-08 1:24 
GeneralRe: change background color of dialog Pin
zhiyuan1629-Dec-08 1:43
zhiyuan1629-Dec-08 1:43 
AnswerRe: change background color of dialog Pin
Malli_S29-Dec-08 2:17
Malli_S29-Dec-08 2:17 
GeneralRe: change background color of dialog Pin
zhiyuan1629-Dec-08 17:10
zhiyuan1629-Dec-08 17:10 
GeneralRe: change background color of dialog Pin
Malli_S29-Dec-08 19:09
Malli_S29-Dec-08 19:09 

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.