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

C / C++ / MFC

 
AnswerRe: Question with Directshow Video Compression Pin
Mark Salsbery10-Jan-07 10:25
Mark Salsbery10-Jan-07 10:25 
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 
I can't see where you are ever calling the default button window proc.

What happens if you do this....
add a
static WNDPROC lpfnDefButtonProc; 
member to your W32Button class.
...
W32Button::W32Button(HINSTANCE hinstance)
{
   static bool boo = false;
 
   if (!boo)
   {
      WNDCLASS wc;
      GetClassInfo(NULL,"button",&wc);
 
      lpfnDefButtonProc = wc.lpfnWndProc;
      wc.lpfnWndProc = &W32Button::ButtonProc;
      wc.hInstance = hinstance;
 
      wc.lpszClassName = "W32Button";
 
      RegisterClass(&wc);
   }
}
 
LRESULT WINAPI
W32Button::ButtonProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
   return CallWindowProc( lpfnDefButtonProc , hwnd, uMsg, wParam, lParam);
}

GeneralRe: subclassing/superclassing a button Pin
Niamorh11-Jan-07 4:20
Niamorh11-Jan-07 4:20 
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 

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.