08 2016 档案
摘要:.h文件 protected: afx_msg void OnNMRClick(NMHDR *pNMHDR, LRESULT *pResult); .cpp文件 BEGIN_MESSAGE_MAP(CDemoDlg, CPropertyPage) ON_NOTIFY(LVN_COLUMNCLICK,
阅读全文
摘要:CDialog类的消息循环中去掉了TranslateAccelerator函数,因此不能响应热键;同时由于对话框上可能有很多控件,且默认情况下这些子窗口已经截获了焦点,因此键盘消息已经被控件捕获了;同时为了实现控件焦点切换和对话框默认行为, VK_TAB、VK_LEFT、VK_RIGHT、VK_UP
阅读全文
摘要:1.新建Basic MSI项目 2.Behavior and Logic->Custom Action and Sequence->右边面板CustomActions->Custom Action Wizard ->下一步->填写Action Name、Comment(可不填)->Type 选择Ca
阅读全文
摘要:extern "C" __declspec(dllexport) int _cdecl GetSum(int a,int b); 创建win32项目,Application type选择dll。 DLL.h extern "C" __declspec(dllexport) LPWSTR _cdecl
阅读全文
摘要:新建 Dialog based MFC项目DrawImage 在资源中新添加一个Dialog,IDD_PICBOXDLG 在此dialog上添加Pictre Contrl shift+ctrl+x 添加对应的类:CPicBoxDlg DrawImage.cpp中加入: CPicBoxDlg* g_D
阅读全文

浙公网安备 33010602011771号