
MFC开发
文章平均质量分 80
主要记录一些MFC上使用的时候遇到的问题和难点
sty_app
追求卓越,幸运神自会降临
展开
-
MFC 试图执行的操作不受支持 【记录贴】
触发代码为···HWND CDataExchange::PrepareCtrl(int nIDC){ASSERT(nIDC != 0);ASSERT(nIDC != -1); // not allowedHWND hWndCtrl;COleControlSite* pSite = NULL;m_pDlgWnd->GetDlgItem(nIDC, &hWndCtrl);if (hWndCtrl == NULL){// Could be a windowless OCXpS原创 2021-05-08 10:45:28 · 444 阅读 · 0 评论 -
MFC WaitForSingleObject函数
WaitForSingleObject 函数SyntaxParametersReturn ValueRemarksWaits until the specified object is in the signaled state or the time-out interval elapses.【等待,直到指定的对象处于信号状态或超时间隔结束。】To enter an alertable wait state, use the WaitForSingleObjectEx function. To wa原创 2021-03-29 11:34:12 · 1597 阅读 · 0 评论 -
MFC CBitmap::CreateBitmap()
CBitmap::CreateBitmapSyntaxParametersReturn ValueRemarks心得体会Initializes a device-dependent memory bitmap that has the specified width, height, and bit pattern. 【初始化具有指定宽度、高度和位模式的设备相关内存位图。】回到 CBitmap ClassSyntaxBOOL CreateBitmap( int nWidth, int n原创 2021-03-24 18:49:04 · 1438 阅读 · 0 评论 -
MFC CBitmap::CBitmap()
CBitmap::CBitmapSyntaxRemarksConstructs a CBitmap object. 【构造CBitmap对象。】SyntaxCBitmap( );RemarksThe resulting object must be initialized with one of the initialization member functions. 【结果对象必须用其中一个初始化成员函数初始化。】...原创 2021-03-24 18:38:44 · 220 阅读 · 0 评论 -
MFC CBitmap Class
CBitmap 类Base Class Members(基类成员)Construction(构造)Initialization(初始化)Attributes(属性)Operations(操作)心得体会To use a CBitmap object, construct the object, attach a bitmap handle to it with one of the initialization member functions, and then call the object’s mem原创 2021-03-24 18:35:14 · 285 阅读 · 0 评论 -
MFC System Error Codes (12000-15999)
System Error Codes 12000-15999The following table provides a list of system error codes (errors 12000 to 15999). These values are defined in the WinError.h header file. They are returned by the GetLastError function when many functions fail. To retrieve t原创 2021-03-24 11:09:39 · 1449 阅读 · 0 评论 -
MFC System Error Codes (9000-11999)
System Error Codes 9000-11999The following table provides a list of system error codes (errors 9000 to 11999). These values are defined in the WinError.h header file. They are returned by the GetLastError function when many functions fail. To retrieve the原创 2021-03-24 11:00:22 · 696 阅读 · 0 评论 -
MFC System Error Codes (8200-8999)
System Error Codes 8200-8999The table in this topic provides a list of system error codes for errors 8200 to 8999. These values are defined in the WinError.h header file. They are returned by the GetLastError function when many functions fail. To retrieve原创 2021-03-24 10:54:05 · 1700 阅读 · 0 评论 -
MFC System Error Codes (6000-8199)
System Error Codes 6000-8199The following table provides a list of system error codes (errors 6000 to 8199). These values are defined in the WinError.h header file. They are returned by the GetLastError function when many functions fail. To retrieve the d原创 2021-03-24 10:44:12 · 1187 阅读 · 0 评论 -
MFC System Error Codes (4000-5999)
System Error Codes 4000-5999The table in this topic provides a list of system error codes for errors 4000 to 5999. These values are defined in the WinError.h header file. They are returned by the GetLastError function when many functions fail. To retrieve原创 2021-03-24 10:13:32 · 527 阅读 · 0 评论 -
MFC System Error Codes (1700-3999)
System Error Codes 1700-3999The table in this topic provides a list of system error codes for errors 1700 to 3999. These values are defined in the WinError.h header file. They are returned by the GetLastError function when many functions fail. To retrieve原创 2021-03-24 09:40:26 · 852 阅读 · 0 评论 -
MFC System Error Codes (1300-1699)
System Error Codes 1300-1699The table in this topic provides a list of system error codes for errors 1300 to 1699. These values are defined in the WinError.h header file. They are returned by the GetLastError function when many functions fail. To retrieve原创 2021-03-24 09:30:27 · 940 阅读 · 0 评论 -
MFC System Error Codes (1000-1299)
System Error Codes 1000-1299The table in this topic provides a list of system error codes for errors 1000 to 1299. These values are defined in the WinError.h header file. They are returned by the GetLastError function when many functions fail. To retrieve原创 2021-03-23 10:55:07 · 1210 阅读 · 0 评论 -
MFC System Error Codes (500-999)
System Error Codes 500-999The following table provides a list of system error codes (errors 500 to 999). These values are defined in the WinError.h header file. They are returned by the GetLastError function when many functions fail. To retrieve the descr原创 2021-03-23 10:10:11 · 1253 阅读 · 0 评论 -
MFC System Error Codes (0-499)
System Error Codes 0-499The following table provides a list of system error codes (errors 0 to 499). They are returned by the GetLastError function when many functions fail. To retrieve the description text for the error in your application, use the Forma原创 2021-03-22 09:44:13 · 721 阅读 · 0 评论 -
MFC System Error Codes 系统错误代码
The following topics provide lists of system error codes. These values are defined in the WinError.h header file.【以下主题提供系统错误代码列表。这些值在WinError.h头文件中定义。】System Error Codes (0-499) System Error Codes (500-999) System Error Codes (1000-1299) System Error C原创 2021-03-22 09:18:53 · 389 阅读 · 0 评论 -
MFC GetLastError 函数
GetLastErrorSyntax(语法)Parameters(参数)Return Value(返回值)Remarks(备注)作者的话(敬请期待)Retrieves the calling thread’s last-error code value. The last-error code is maintained on a per-thread basis. Multiple threads do not overwrite each other’s last-error code.【检索调用线程原创 2021-03-22 09:17:16 · 640 阅读 · 0 评论 -
MFC SetWindowLong 函数
SetWindowLongThe SetWindowLong function changes an attribute of the specified window. The function also sets the 32-bit (long) value at the specified offset into the extra window memory.SetWindowLong函数更改指定窗口的一项属性。该函数还可将指定偏移的32位值设置到附加的窗口内存中。Note This fun原创 2021-03-20 16:44:24 · 1035 阅读 · 0 评论 -
MFC BLENDFUNCTION 结构体
BLENDFUNCTIONThe BLENDFUNCTION structure controls blending by specifying the blending functions for source and destination bitmaps.BLENDFUNCTION结构通过为源位图和目标位图指定混合函数来控制混合。typedef struct _BLENDFUNCTION { BYTE BlendOp; BYTE BlendFlags; BYTE原创 2021-03-19 14:07:41 · 441 阅读 · 0 评论 -
MFC AlphaBlend 函数
AlphaBlendParameter(参数)Return Values(返回值)Remarks(备注)The AlphaBlend function displays bitmaps that have transparent or semitransparent pixels.AlphaBlend函数显示拥有透明或半透明像素点的位图。BOOL AlphaBlend( HDC hdcDest, // handle to destination DC(目标DC的原创 2021-03-19 10:41:02 · 795 阅读 · 0 评论