Mở phần Design Dialog lên. --> Chọn Property.
Chọn Phần Message(Bên phải của nút 'Sấm Sét') Tìm tới WM_LBUTTONUP chọn Combobox bên cạnh nói nó <Add> OnLButtonUp xong vào chổ khai báo của nó Edit lại hàm này.
Chi tiết như sau:
Visual C++ Code:
void CDemo2k5Dlg::OnLButtonUp(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default MessageBox(_T("You click Left Mouse")); CDialog::OnLButtonUp(nFlags, point); }
^_^ -Chúc vui- ^_^