Click here to Skip to main content
15,895,192 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Get Message Pin
Mark Salsbery7-Apr-08 6:00
Mark Salsbery7-Apr-08 6:00 
GeneralRe: Get Message Pin
Kuldeep Bhatnagar9-Apr-08 22:46
Kuldeep Bhatnagar9-Apr-08 22:46 
QuestionEntering "What's This?" Mode Programmatically? Pin
Oddball4-Apr-08 6:47
Oddball4-Apr-08 6:47 
AnswerRe: Entering "What's This?" Mode Programmatically? Pin
led mike7-Apr-08 4:38
led mike7-Apr-08 4:38 
GeneralRe: Entering "What's This?" Mode Programmatically? Pin
Oddball7-Apr-08 9:44
Oddball7-Apr-08 9:44 
GeneralRe: Entering "What's This?" Mode Programmatically? Pin
led mike7-Apr-08 10:19
led mike7-Apr-08 10:19 
GeneralRe: Entering "What's This?" Mode Programmatically? Pin
led mike7-Apr-08 10:40
led mike7-Apr-08 10:40 
GeneralRe: Entering "What's This?" Mode Programmatically? Pin
Oddball9-Apr-08 4:31
Oddball9-Apr-08 4:31 
Mike,

I apologize for not responding sooner, but I was a victim of whatever happened to the boards yesterday, and couldn't log in. Sorry for getting snippy back there, too. I should know better than to check up on message boards when my day isn't going well to begin with. I suppose I could have made my OP a little more clear, too.

In any event, the WM_SYSCOMMAND message sounds like exactly what I need. I came to the conclusion before that the "?" button was not sending a message by trying to watch the behavior of the WndProc method when it was pressed. With how many messages go through that puppy, I missed it.

I've been playing around with Win32 messaging since yesterday, which is new to me, and I can't quite seem to get this rolling. Perhaps you could shed some more light on this for me? I believe that this is the last part of the solution to my problem. I've cobbled together the following lines in a button click handler to attempt to activate "What's This?" mode:

int WM_SYSCOMMAND = 0x112;
IntPtr SC_CONTEXTHELP = IntPtr(0xF180);
Windows::Forms::Message msg = Windows::Forms::Message::Create(this->Handle, WM_SYSCOMMAND, SC_CONTEXTHELP, IntPtr(0));
this->WndProc(msg);


It compiles without complaint, but nothing happens (that I can detect, anyway) when the button is clicked. Can you see what I am screwing up or missing?

Thanks for your patience, and I appreciate the help.
GeneralRe: Entering "What's This?" Mode Programmatically? Pin
led mike9-Apr-08 6:05
led mike9-Apr-08 6:05 
GeneralRe: Entering "What's This?" Mode Programmatically? Pin
Oddball9-Apr-08 6:18
Oddball9-Apr-08 6:18 
GeneralRe: Entering "What's This?" Mode Programmatically? Pin
led mike9-Apr-08 6:29
led mike9-Apr-08 6:29 
GeneralRe: Entering "What's This?" Mode Programmatically? Pin
Oddball14-Apr-08 7:51
Oddball14-Apr-08 7:51 
GeneralRe: Entering "What's This?" Mode Programmatically? Pin
Luc Pattyn7-Apr-08 10:41
sitebuilderLuc Pattyn7-Apr-08 10:41 
GeneralRe: Entering "What's This?" Mode Programmatically? Pin
Oddball9-Apr-08 4:39
Oddball9-Apr-08 4:39 
GeneralRe: Entering "What's This?" Mode Programmatically? Pin
Luc Pattyn9-Apr-08 6:22
sitebuilderLuc Pattyn9-Apr-08 6:22 
GeneralRe: Entering "What's This?" Mode Programmatically? Pin
Oddball14-Apr-08 7:49
Oddball14-Apr-08 7:49 
GeneralRe: Entering "What's This?" Mode Programmatically? Pin
Luc Pattyn14-Apr-08 7:53
sitebuilderLuc Pattyn14-Apr-08 7:53 
GeneralRuns Commands in order Pin
newkid3-Apr-08 3:46
newkid3-Apr-08 3:46 
GeneralRe: Runs Commands in order Pin
led mike3-Apr-08 5:00
led mike3-Apr-08 5:00 
Generalsigned to unsigned char conversion Pin
vikramaditya2343-Apr-08 2:39
vikramaditya2343-Apr-08 2:39 
GeneralRe: signed to unsigned char conversion Pin
led mike3-Apr-08 4:48
led mike3-Apr-08 4:48 
Generalrendering multiple BufferedGraphics objects to the display Pin
cristian.fatu2-Apr-08 23:49
cristian.fatu2-Apr-08 23:49 
GeneralRe: rendering multiple BufferedGraphics objects to the display Pin
Mark Salsbery3-Apr-08 5:55
Mark Salsbery3-Apr-08 5:55 
GeneralRe: rendering multiple BufferedGraphics objects to the display Pin
cristian.fatu3-Apr-08 22:39
cristian.fatu3-Apr-08 22:39 
GeneralRe: rendering multiple BufferedGraphics objects to the display Pin
Mark Salsbery4-Apr-08 6:08
Mark Salsbery4-Apr-08 6:08 

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.