thanx for the reply, but i should have said i am writing the code in win32 not MFC
sorry for the confusion, here is what i have gotten so far, but it dont work
Code:
BOOL CALLBACK ControlDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
HBITMAP hbitmap;
HINSTANCE hInst;
int len = 0;
int node = 0;
switch(message)
{
case WM_INITDIALOG:
/* Load the button images */
hbitmap = (HBITMAP)LoadImage( hInst,MAKEINTRESOURCE(IDB_BIT_X1),
IMAGE_BITMAP, 0, 0, LR_CREATEDIBSECTION );
/* Now attatch the bitmaps to the buttons */
SendDlgItemMessage( hwnd, IDC_BUT_X1_AXIS, BM_SETIMAGE, (WPARAM)IMAGE_BITMAP,
(LPARAM)(HBITMAP)hbitmap );
return TRUE;
break;
case WM_CREATE:
break;