摘要:
char szFilter[] = "TEXT files(*.txt)|*.txt"; CFileDialog dlg(1, NULL, NULL, NULL, szFilter); if (dlg.DoModal() == IDOK) { m_path = dlg.GetPathName(); } UpdateData(false); 阅读全文
摘要:
一、图片按钮1 类中定义变量CControlButton m_ctrlOK;2 数据交换 DDX_Control(pDX, IDC_LOGIN, m_ctrlOK);3 使用方法 GetDlgItem(IDC_LOGIN)->MoveWindow(1,100,80,40); m_ctrlOK.SetBitmapId(".\\admin\\登录1.bmp",".\\admin\\登录.bmp", ".\\admin\\登录2.bmp",".\\admin\\登录.bmp");二、 // 装入棒形光标 HINST 阅读全文
摘要:
一,ALT+TAB切换时小图标的添加1 Dlg类中添加变量protected: HICON m_hIcon;#define IDR_MAINFRAME 128ICON IDR_MAINFRAME,IDC_STATIC,11,17,20,20// Icon with lowest ID value placed first to ensure application icon// remains consistent on all systems.IDR_MAINFRAME ICON DISCARDABLE... 阅读全文
摘要:
// TOOLTIPWND.H 添加气球式提示栏#if !defined(AFX_TOOLTIPWND_H__2C52D3E4_2F5B_11D2_8FC9_000000000000__INCLUDED_)#define AFX_TOOLTIPWND_H__2C52D3E4_2F5B_11D2_8FC9_000000000000__INCLUDED_#if _MSC_VER >= 1000#pragma once#endif // _MSC_VER >= 1000// ToolTipWnd.h : header file//// Written by Shankar (sshank 阅读全文