News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

getdibcolortable return an error!

Started by costy35, March 17, 2010, 04:05:18 PM

Previous topic - Next topic

costy35

   .If uMsg == WM_CREATE
       Invoke GetDlgItem, hWnd, IDC_WINDOW1_PICTURE1
      Invoke GetDC, Eax
      Mov hdc1, Eax
      Invoke CreateCompatibleDC, hdc1
      Mov hdc, Eax
      Invoke CreateCompatibleBitmap, hdc1, 100, 100
      Invoke SelectObject, hdc, Eax
   .ElseIf uMsg == WM_COMMAND
      .If wParam == IDC_WINDOW1_BUTTON1
Invoke BitBlt, hdc, 0, 0, 150, 150, hdc1, 0, 0, SRCCOPY
Invoke Alloc, 5000
Mov costy, Eax
Invoke GetDIBColorTable, hdc, 0, 100, Addr costy

.....RETURN 0!


where I wrong?
thanks! :bg