2015年11月25日

摘要: UINT nHitTest = CDialogEx::OnNcHitTest(point);CRect rect;GetClientRect(&rect);rect.bottom = 18;ScreenToClient(&point);if(rect.PtInRect(point)){ if(HT... 阅读全文

posted @ 2015-11-25 13:23 赤子踏浪 阅读(169) 评论(0) 推荐(0)

摘要: CString str;GetDlgItemTextW(IDC_ZD,str);//IDC_ZD为控件按钮,按钮的文字为置顶CRect rect;GetWindowRect(&rect);//获取窗口位置if( str == "置顶"){ SetWindowPos( &wndTopMost, re... 阅读全文

posted @ 2015-11-25 13:20 赤子踏浪 阅读(1844) 评论(0) 推荐(0)

摘要: 原型参数注意事项:使用该函数时,需添加该头文件:[1]#include ShellExecute函数原型及参数含义如下:ShellExecute(hWnd: HWND; {指定父窗口句柄}Operation: PChar; {指定动作, 譬如: open、runas、print、edit、explo... 阅读全文

posted @ 2015-11-25 13:01 赤子踏浪 阅读(2418) 评论(0) 推荐(0)


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3