Re: Cannot compile ImageButton source files
Quote:
Originally Posted by kkez
Lol. If i add ZeroMemory, it crashes (with MinGW). OH MAN! :confused:
Possible because of the same bad guy :D
Well, once we have begun writing C++ code, let's throw away the C style and define a constructor which initializes the members like our muscles want:
Code:
struct IMAGEBUTTONPROP
{
IMAGEBUTTONPROP()
: hwndButton(NULL), buttonCursor(NULL), ...etc...
{ }
HWND hwndButton;
HCURSOR buttonCursor;
// ...etc...
};
Re: Cannot compile ImageButton source files
Yes, i'll add that.
EDIT: done :thumb: