怎样在热键呼出的同时带出原窗口的进程id,就像fpe一样? 怎样在热键呼出的同时带出原窗口的进程id,就像fpe一样? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 RegisterHotKey(m_hWnd,0Xa002,0, VK_F1); ::SetFocus(m_hWnd);**************************************************BOOL CMySysHotKeyDlg::PreTranslateMessage(MSG* pMsg) { // TODO: Add your specialized code here and/or call the base class if (pMsg->message==WM_HOTKEY && pMsg->wParam==0Xa002) { DWORD dwProcessId = GetCurrentProcessId(); CString strProcess; strProcess.Format(_T("Current Process Id : %ld"),dwProcessId); AfxMessageBox(strProcess); } return CDialog::PreTranslateMessage(pMsg);}LRESULT CMySysHotKeyDlg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) { // TODO: Add your specialized code here and/or call the base class if(message == WM_CLOSE) { ::UnregisterHotKey(m_hWnd,0Xa002); } return CDialog::WindowProc(message, wParam, lParam);} com中创建ocx对象失败 如何将定义为float 型转化为text型写入文本框? 怎么会提示CRecordset没有定义呢? http的问题? AF_INET 和 PF_INET有什么区别? CListCtrl中的图片如何成显示256色? 如何单独打印CEdit内的内容(高分) 这个压缩算法(LZW)越压越大 我的vc问题! 利用树形控件如何对视图区的模型资源进行管理? 在VC App中如何操作如Word之类的应用? 我想去掉sdi的菜单, 然后在点工具条上的一个按钮出现弹出菜单
::SetFocus(m_hWnd);**************************************************BOOL CMySysHotKeyDlg::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if (pMsg->message==WM_HOTKEY && pMsg->wParam==0Xa002)
{
DWORD dwProcessId = GetCurrentProcessId();
CString strProcess;
strProcess.Format(_T("Current Process Id : %ld"),dwProcessId);
AfxMessageBox(strProcess);
}
return CDialog::PreTranslateMessage(pMsg);
}LRESULT CMySysHotKeyDlg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
// TODO: Add your specialized code here and/or call the base class
if(message == WM_CLOSE)
{
::UnregisterHotKey(m_hWnd,0Xa002);
}
return CDialog::WindowProc(message, wParam, lParam);
}