none
Fix a Bug: Change Background color for textbox on windows mobile doesn't work correctly(ATL & WTL) RRS feed

  • 常规讨论

  • Sorry for my poor English.

    When you want the edit box to be tranparent on dialog, use WM_CTLCOLOREDIT notification is very easy in a common case. But if you develop base on ATL or WTL,  it works on emulation correctly, but the devices.

    CAUSE

    CDialogImplBaseT< TBase >::DialogProc has no "return in DWL_MSGRESULT " when it process the WM_CTLCOLOREDIT notification.

    RESOLUTION

    When process the WM_CTLCOLOREDIT notification, do "return in DWL_MSGRESULT "

    ::SetWindowLongPtr(hwndDlg, DWLP_MSGRESULT, hBrush);

    2010年1月25日 1:25

全部回复