VC界面应用
文章平均质量分 72
yang_fujiang
追风 寻梦
展开
-
基于单个对话框工程中,CListBox控件上实现 选择/复制功能(不要写CListBox的派生类)
谢谢友情帮顶的诸位 该问题已经自行解决: 解决方法如下:在PreTranslateMessage函数中对右键信息进行截获,判断已经选择项目后,弹出menu if(WM_RBUTTONDOWN == pMsg->message) if(pMsg->hwnd == GetDlgItem(IDC_LIST_MSG)->GetSafeHwnd()) if (LB_ERR !=m_List_Msg.GetC原创 2008-10-29 16:15:00 · 1522 阅读 · 0 评论 -
实现按钮在点选 和 未选时,有不同的背景图片
方法一:1,按钮属性 Owner Drew选上,按钮ID: IDC_BUTTON1 2 在资源视中,右键点击按钮,添加变量。选择CButton类,变量名是m_button。 在CxxDlg.H文件中将CButton m_button;改为CBitmapButton m_button; 3 在初始化OnInitDialog()里边 m_button.LoadBitmaps(_T("IDB原创 2008-11-11 15:31:00 · 762 阅读 · 0 评论 -
debugger显示内容函数 [VOID OutputDebugString]
OutputDebugStringThe OutputDebugString function sends a string to the debugger for the current application. VOID OutputDebugString( LPCTSTR lpOutputString // pointer to string to be displayed转载 2008-11-26 15:31:00 · 599 阅读 · 0 评论