Hi

I am having difficulties with the LoadImage() function

This is how I use it...
Code:
HBITMAP hCross = (HBITMAP)LoadImage(hInstance, MAKEINTRESOURCE(101), IMAGE_BITMAP, 15, 15, LR_SHARED);
DrawState(hDC, NULL, NULL, (LPARAM)hCross, NULL, m_rcRect[i].left, m_rcRect[i].top, 15, 15, DST_BITMAP);
(The Drawstate works ok...)

The LoadImage() seems it does not take in the resource files... I tried to look it up, but with no success, the documentation does not say much...

Can you please help me with this or advise me with any other function that is able to draw bitmaps from resource...