Click here to Skip to main content
15,909,039 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Another (different) SendMessage question. Pin
ns24-Sep-02 8:50
ns24-Sep-02 8:50 
GeneralThanks! It finally works! Pin
ns25-Sep-02 2:47
ns25-Sep-02 2:47 
GeneralRe: Thanks! It finally works! Pin
Ravi Bhavnani25-Sep-02 10:49
professionalRavi Bhavnani25-Sep-02 10:49 
Generalgeneral question on progressbars Pin
ns24-Sep-02 6:56
ns24-Sep-02 6:56 
GeneralRe: general question on progressbars Pin
Tomasz Sowinski24-Sep-02 7:02
Tomasz Sowinski24-Sep-02 7:02 
GeneralRe: general question on progressbars Pin
ns24-Sep-02 7:17
ns24-Sep-02 7:17 
GeneralRe: general question on progressbars Pin
Ravi Bhavnani24-Sep-02 9:11
professionalRavi Bhavnani24-Sep-02 9:11 
Generaldigression Pin
ns25-Sep-02 4:32
ns25-Sep-02 4:32 
Wondering about the SendMessage to hidden button that you taught me. (I know I know - hidden menu next time):

<
code>pView->SendMessage(WM_COMMAND,IDC_BUTTONHIDDEN1,0);</code>
that works great.

But for the API to simulate a button click apparently (not tried yet) I should do:

BM_CLICK
An application sends a BM_CLICK message to simulate the user clicking a button. This message causes the button to receive the WM_LBUTTONDOWN and WM_LBUTTONUP messages, and the button's parent window to receive a BN_CLICKED notification message.

To send this message, call the SendMessage function with the following parameters. 

SendMessage(
  (HWND) hWnd,         // handle to destination window 
  BM_CLICK,            // message to send
  (WPARAM) wParam,     // not used; must be zero
  (LPARAM) lParam      // not used; must be zero
);


So how come the WM_COMMAND triggers the button? It does, thats for sure, but the API equivalent with WM_COMMAND doesnt.....

Thanks,
GeneralRe: digression Pin
Ravi Bhavnani25-Sep-02 4:41
professionalRavi Bhavnani25-Sep-02 4:41 
GeneralRe: digression Pin
ns25-Sep-02 4:49
ns25-Sep-02 4:49 
GeneralRe: digression Pin
Ravi Bhavnani25-Sep-02 10:46
professionalRavi Bhavnani25-Sep-02 10:46 
GeneralRe: digression Pin
ns25-Sep-02 10:59
ns25-Sep-02 10:59 
GeneralRe: digression Pin
Ravi Bhavnani25-Sep-02 11:07
professionalRavi Bhavnani25-Sep-02 11:07 
GeneralA better design Pin
Ravi Bhavnani25-Sep-02 4:47
professionalRavi Bhavnani25-Sep-02 4:47 
GeneralForm Resizing Pin
RuiSantiago24-Sep-02 6:19
RuiSantiago24-Sep-02 6:19 
GeneralRe: Form Resizing Pin
Roger Allen24-Sep-02 6:52
Roger Allen24-Sep-02 6:52 
GeneralRe: Form Resizing Pin
RuiSantiago24-Sep-02 7:09
RuiSantiago24-Sep-02 7:09 
GeneralSource code for convertion from AIFF to WAV Pin
Alex Talazar24-Sep-02 5:46
professionalAlex Talazar24-Sep-02 5:46 
GeneralnID - in create Pin
ns24-Sep-02 5:44
ns24-Sep-02 5:44 
GeneralRe: nID - in create Pin
Tomasz Sowinski24-Sep-02 6:01
Tomasz Sowinski24-Sep-02 6:01 
Generalsendmessage parameters question Pin
ns24-Sep-02 5:37
ns24-Sep-02 5:37 
GeneralRe: sendmessage parameters question Pin
Ravi Bhavnani24-Sep-02 6:16
professionalRavi Bhavnani24-Sep-02 6:16 
GeneralRe: sendmessage parameters question Pin
ns24-Sep-02 6:27
ns24-Sep-02 6:27 
GeneralRe: sendmessage parameters question Pin
Ravi Bhavnani24-Sep-02 6:33
professionalRavi Bhavnani24-Sep-02 6:33 
GeneralRotation of the Rectangle in Windows98 Pin
Kranti Kumar.P24-Sep-02 5:17
sussKranti Kumar.P24-Sep-02 5:17 

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.