- 博客(9)
- 资源 (17)
- 收藏
- 关注
原创 转移当前焦点到另外下一个Tab次序的控件
<br />之前有写个一个关于转移输入焦点的,http://blog.csdn.net/VisualEleven/archive/2010/12/06/6058687.aspx,这里再给出另外一种,之前的那是是直接将焦点转移到指定的控件上(IDCANCEL标示的CButton上),这里给出的是将输入焦点转移到下个Tab次序的控件上。<br /> <br />// 将当前输入焦点转移到下一个Tab顺序的控件上CWnd* pWnd = GetNextDlgTabItem(GetFocus());AS
2010-12-28 11:23:00 2218
原创 屏幕截图(带光标)
<br />// 屏幕截图程序,可运行PC,WinCE,Windows Mobile平台上void SaveScreenToFile(LPCTSTR szFileName){ HDC hScrDC = ::GetDC(NULL); HDC hMemDC = NULL; BYTE *lpBitmapBits = NULL; int nWidth = GetSystemMetrics(SM_CXSCREEN); int nHeight = GetSystemMetr
2010-12-23 10:20:00 7615 14
原创 动态调整CDialogBar的停靠位置
<br />// 在主框架类的CMainFrame的函数中加入最后的代码即可// CDialogBar m_wndMyDialogBar是CMainFrame类的成员变量#define AFX_IDW_DOCKBAR_TOP 0xE81B#define AFX_IDW_DOCKBAR_LEFT 0xE81C#define AFX_IDW_DOCKBAR_RIGHT 0xE81D#define AFX_IDW_DOCKB
2010-12-22 11:39:00 3392 2
原创 Winsock IOCP模型(二)
<br />// IOCP2.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include <WinSock2.h>#include <MSWSock.h>#include <Windows.h>#include <process.h>#pragma comment(lib, "WS2_32.lib")#define MAX_BUFFER 256#de
2010-12-21 10:30:00 14439 24
原创 简单的自绘CListBox(二)(多行显示,支持前景色和背景色的变更)
<br />简单的自绘CListBox,支持多行显示和前景色和背景色的更换。下面是相关的H头文件和CPP文件。<br />#if !defined(AFX_MULITLINELISTBOX_H__D705CB99_9FD0_424E_BD71_027547449AE5__INCLUDED_)#define AFX_MULITLINELISTBOX_H__D705CB99_9FD0_424E_BD71_027547449AE5__INCLUDED_#if _MSC_VER > 1000#pra
2010-12-13 08:50:00 10001 10
原创 CPropertySheet属性页对话框中各个按钮的ID值
<br />//向导模式ID_WIZNEXT // NextID_WIZBACK // BackID_WIZFINISH // FinshIDCANCEL // Cancel//普通模式IDOK // OKIDCANCEL // CancelID_APPLY_NOW // ApplyIDHELP // He
2010-12-08 16:42:00 3258 1
原创 简单的自绘CListBox(多行显示)
<br /> 之前写过一个自绘的CListBox类,详细请参考http://blog.csdn.net/VisualEleven/archive/2010/10/12/5935430.aspx<br />现在修改这之前的代码,使该CListBox能够支持多行显示的问题。<br /> <br />// 重写DrawItem虚函数void CNewListBox::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct) { // TODO: Add your
2010-12-08 10:39:00 5243 4
原创 转移当前焦点到另外一个CButton上
<br />将当前焦点由一个CButton转移到另外一个CButton上,可以使用WM_NEXTDLGCTL消息,可以使用下面代码将焦点移到IDCANCEL标示的Button上 <br />CButton* pButton = (CButton*)GetDlgItem(IDCANCEL);SendMessage/PostMessage(WM_NEXTDLGCTL, (WPARAM)pButton->GetSafeHwnd(), TRUE);
2010-12-06 16:40:00 2049
原创 CEdit中(多行属性),双击选中一行文本
<br />// 重写CEdit类,处理WM_LBUTTONDBLCLK消息void CNewEdit::OnLButtonDblClk(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default CEdit::OnLButtonDblClk(nFlags, point); int start = LineIndex(HIWORD
2010-12-02 10:41:00 3678
Windows Driver Development (Windows驱动开发电子书).rar
2019-07-22
Developing Drivers with the Windows Driver Foundation.pdf
2018-01-22
Developing Drivers with the Microsoft Windows Driver Foundation
2017-03-21
Windows平台下的图形化的Ping工具(2)(基于MFC的Dialog工程)
2010-04-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人