Paquito, al hilo de lo que ha hecho Antonio, mira este codigo ( en lugar del box, puedes pintar el bitmap o lo que consideres )
Quedo a tu disposicion si necesitas mas ayuda
Code: Select all | Expand
#include "FiveWin.ch"
function Main()
local oDlg, oCmb, cSelected := " "
DEFINE DIALOG oDlg TITLE "ComboBox Example" SIZE 300, 200 PIXEL
@ 2, 3 COMBOBOX oCmb VAR cSelected SIZE 100, 60 ;
ITEMS { " ", "Item 1", "Item 2", "Item 3" }
__clsAddMsg( oCmb:ClassH, "Display", @Display(), HB_OO_MSG_METHOD,, 1 )
@ 3, 8 BUTTON "OK" SIZE 50, 20 ACTION oDlg:End()
ACTIVATE DIALOG oDlg CENTERED
RETURN NIL
static function Display( o )
local Self := QSelf()
local hDC := ::GetDC()
local aRect := GetClientRect( ::hWnd )
if Empty( ::Varget() )
RoundBox( hDC, aRect[ 2 ] - 6, aRect[ 1 ] - 6, aRect[ 4 ] + 6, aRect[ 3 ] + 6, 0, 0, ;
CLR_RED, 4 )
else
RoundBox( hDC, aRect[ 2 ] - 6, aRect[ 1 ] - 6, aRect[ 4 ] + 6, aRect[ 3 ] + 6, 0, 0, ;
CLR_GREEN, 4 )
endif
::ReleaseDC()
return nil