Click here to Skip to main content
15,917,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question with Directshow Video Compression Pin
godspeed12310-Jan-07 10:38
godspeed12310-Jan-07 10:38 
GeneralRe: Question with Directshow Video Compression Pin
Mark Salsbery10-Jan-07 10:50
Mark Salsbery10-Jan-07 10:50 
GeneralRe: Question with Directshow Video Compression Pin
godspeed12310-Jan-07 11:01
godspeed12310-Jan-07 11:01 
GeneralRe: Question with Directshow Video Compression Pin
godspeed12310-Jan-07 11:13
godspeed12310-Jan-07 11:13 
GeneralRe: Question with Directshow Video Compression Pin
Mark Salsbery10-Jan-07 13:58
Mark Salsbery10-Jan-07 13:58 
Questionsubclassing/superclassing a button Pin
Niamorh10-Jan-07 8:13
Niamorh10-Jan-07 8:13 
AnswerRe: subclassing/superclassing a button Pin
Mark Salsbery10-Jan-07 8:36
Mark Salsbery10-Jan-07 8:36 
GeneralRe: subclassing/superclassing a button Pin
Niamorh11-Jan-07 4:20
Niamorh11-Jan-07 4:20 
Hi, thanks for the reply.

You were right, I wasn't calling the right defaultproc.
It works right now (the button displays well on the window).

I've already tried the trick you gave me before but not the good way : I typed static WNDPROC lpfnDefButtonProc; in the class description (.h) and so I had an error with link edition... because I didn't wrote the function in .cpp.

Thank you it works now. Smile | :)



I still have a problem, because the WM_COMMAND message for the button seems not to be catched anymore when I click on it...


LRESULT WINAPI
W32Button::ButtonProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
W32Button* w = reinterpret_cast<w32button*> (GetWindowLongA(hwnd, GWL_USERDATA));

int i;

switch (uMsg)
{
case WM_CREATE:
i = 0;
break;
case WM_PAINT:
i = w->GetHeight();
break;
case WM_COMMAND:
i = w->GetHeight();
break;
default:
i = 0;
}
return CallWindowProc( oldButtonProc , hwnd, uMsg, wParam, lParam);
}

The debugger goes trough WM_PAINT, WM_CREATE, default, but never in WM_COMMAND.
I can't understand why, someone does ?

I assume that WM_COMMAND is the message wich is sent when you click on the buton, am I wrong ?
GeneralRe: subclassing/superclassing a button Pin
Mark Salsbery11-Jan-07 4:37
Mark Salsbery11-Jan-07 4:37 
QuestionOpen File Dialog PocketPC Pin
Like2Byte10-Jan-07 8:08
Like2Byte10-Jan-07 8:08 
QuestionImageList_DrawIndirect Problem! Pin
r3dqu33n10-Jan-07 6:15
r3dqu33n10-Jan-07 6:15 
QuestionRe: ImageList_DrawIndirect Problem! Pin
Mark Salsbery10-Jan-07 7:33
Mark Salsbery10-Jan-07 7:33 
AnswerRe: ImageList_DrawIndirect Problem! Pin
r3dqu33n10-Jan-07 8:36
r3dqu33n10-Jan-07 8:36 
GeneralRe: ImageList_DrawIndirect Problem! Pin
Mark Salsbery10-Jan-07 8:42
Mark Salsbery10-Jan-07 8:42 
QuestionProblem with CMap GetStartPosition() Pin
vipin_nvk10-Jan-07 5:22
vipin_nvk10-Jan-07 5:22 
AnswerRe: Problem with CMap GetStartPosition() Pin
PJ Arends10-Jan-07 5:56
professionalPJ Arends10-Jan-07 5:56 
QuestionRe: Problem with CMap GetStartPosition() Pin
David Crow10-Jan-07 5:59
David Crow10-Jan-07 5:59 
QuestionWhat's the problem of my program? Pin
Ming Luo10-Jan-07 5:15
Ming Luo10-Jan-07 5:15 
AnswerRe: What's the problem of my program? Pin
Roger Stoltz10-Jan-07 5:36
Roger Stoltz10-Jan-07 5:36 
GeneralRe: What's the problem of my program? Pin
PJ Arends10-Jan-07 6:02
professionalPJ Arends10-Jan-07 6:02 
GeneralRe: What's the problem of my program? Pin
Roger Stoltz10-Jan-07 6:11
Roger Stoltz10-Jan-07 6:11 
QuestionSending File Through UDP Pin
Girish60110-Jan-07 4:14
Girish60110-Jan-07 4:14 
AnswerRe: Sending File Through UDP Pin
Roger Stoltz10-Jan-07 4:36
Roger Stoltz10-Jan-07 4:36 
AnswerRe: Sending File Through UDP Pin
James R. Twine10-Jan-07 4:50
James R. Twine10-Jan-07 4:50 
GeneralRe: Sending File Through UDP Pin
Tim Paaschen10-Jan-07 19:42
Tim Paaschen10-Jan-07 19:42 

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.