Re: FWH/xHarbour Menus
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Stefan, Evans,
Simply change FARPROC into WNDPROC in the C code section![Smile :-)](./images/smilies/icon_smile.gif)
Simply change FARPROC into WNDPROC in the C code section
![Smile :-)](./images/smilies/icon_smile.gif)
www.FiveTechSoft.com
https://fivetechsupport.com/forums/
https://fivetechsupport.com/forums/viewtopic.php?f=3&t=15667
Antonio Linares wrote:Stefan, Evans,
Simply change FARPROC into WNDPROC in the C code section
Antonio Linares wrote:Stefan, Evans,
Simply change FARPROC into WNDPROC in the C code section
StefanHaupt wrote:Antonio,Antonio Linares wrote:Stefan, Evans,
Simply change FARPROC into WNDPROC in the C code section
thanks, it compiles fine now.
...
if( !bTab )
{
// V. ADDED STARTS
if( ! ( lpdis->itemState & ODS_SELECTED ) ) // NEW !!!!!!!!
SetBkColor( lpdis->hDC, 16770508 ); // HCYAN1
// V. ADDED ENDS
DrawText( lpdis->hDC, szPrompt, -1, &lpdis->rcItem, DT_LEFT );
...
Antonio Linares wrote:Evans,
You just need this new line:
- Code: Select all Expand view
...
if( !bTab )
{
// V. ADDED STARTS
if( ! ( lpdis->itemState & ODS_SELECTED ) ) // NEW !!!!!!!!
SetBkColor( lpdis->hDC, 16770508 ); // HCYAN1
// V. ADDED ENDS
DrawText( lpdis->hDC, szPrompt, -1, &lpdis->rcItem, DT_LEFT );
...