dear antonio,
I think I found the error
when I draw the item of listbox I call a structure for dra the item :
http://msdn.microsoft.com/en-us/library/92fhtw0f(VS.80).aspx
typedef struct tagDRAWITEMSTRUCT {
UINT CtlType;
UINT CtlID;
UINT itemID;
UINT itemAction;
UINT itemState;
HWND hwndItem;
HDC hDC;
RECT rcItem;
DWORD itemData;
} DRAWITEMSTRUCT;
and the I draw the box of check this :
http://msdn.microsoft.com/en-us/library/ms534865(VS.85).aspx
BOOL DrawFrameControl(
HDC hdc, // handle to device context
LPRECT lprc, // bounding rectangle
UINT uType, // frame-control type
UINT uState // frame-control state
);
I found the source on an old topic di César E. Lozada
HB_FUNC( DRAWFRAMECONTROL ) // hDC, aRect, uType, uState
{
HDC hdc = ( HDC ) hb_parnl(1); // handle to device context
UINT uType = hb_parni(3) ; // frame-control type
UINT uState = hb_parni(4); // frame-control state
RECT rct;
rct.top = hb_parnl(2,1);
rct.left = hb_parnl(2,2);
rct.bottom = hb_parnl(2,3);
rct.right = hb_parnl(2,4);
hb_retnl ( DrawFrameControl(hdc,&rct,uType,uState) );
}
but why it is not 3d ?
i saw there is a DrawThemeBackground function but it use uxtheme.dll
you use this function with fwh ? How I can make to call it ?
Any help ?