本帖最后由 langkailen 于 2011-03-07 14:31:00 编辑

解决方案 »

  1.   

    你确定IDC_UserName的父窗口是CReliefDlg?
      

  2.   

    CReliefDlg为一个对话框。这个对话框上有个COMBOBOX控件。
      

  3.   

    The WM_LBUTTONUP message is posted when the user releases the left mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse.WM_LBUTTONUP又不会发送到父窗口去,你是需要在ComboBox中处理WM_LBUTTONUP消息吗?你可以派生CComboBox类,在里面处理WM_LBUTTONUP消息即可