• 0

[VC6] ComboBoxEx


Question

2 answers to this question

Recommended Posts

  • 0

First I:

rdPtr->hBrush = CreateSolidBrush(rdPtr->crefEditFontBkColor);

SendMessage(

ryPtr->ryHmainWin,

WM_CTLCOLORLISTBOX,

(WPARAM)GetDC(rdPtr->hWndCBX),

(LPARAM)rdPtr->hWndCBX

);

Then in WindowProc:

case WM_CTLCOLORLISTBOX:

// It's for me ???

if ((rdPtr = GetRdPtr((HWND)LOWORD(lParam), rhPtr))!=NULL && rdPtr->rHo.hoIdentifier==IDENTIFIER)

{

MessageBox(hWnd, NULL, NULL, NULL);

SetTextColor((HDC)wParam, rdPtr->crefEditFontColor);

SetBkMode((HDC)wParam, OPAQUE);

SetBkColor((HDC)wParam, rdPtr->crefEditFontBkColor);

rhPtr->rh4.rh4KpxReturn = (long)rdPtr->hBrush;

return REFLAG_MSGRETURNVALUE;

}

break;

The messagebox comes up but then nothing.

Thanks

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.