Unable to use RegisterClass(&WndClass);

Craig Chandler craig.chandler at interdynamics.com
Thu Aug 9 21:04:48 CDT 2001


WNDCLASS WndClass;

  GetClassInfo(NULL, IF_BUTTON_NAME, &WndClass);

  WndClass.lpszClassName = IF_BUTTON_NAME;
  WndClass.hInstance     = hInstance;
  WndClass.hbrBackground = (HBRUSH)GetStockObject( LTGRAY_BRUSH );

  WndClass.cbWndExtra    = kIFWNDEXTRA;

  IF_BUTTON_PROC         = WndClass.lpfnWndProc;
  WndClass.lpfnWndProc   = ButtonWndProcBridge;

  return RegisterClass(&WndClass);


where IF_BUTTON_NAME = "button"

"Craig Chandler" <craig.chandler at interdynamics.com> wrote:

> when i use the RegisterClass(&WndClass); under wine the call fails. I'm
> using it to sub class the button class. Does wine not support this?

As I already wrote in the newsgroup: please provide the source of your code.
--
Dmitry.






More information about the wine-devel mailing list