|
[求助]C++语法问题请教
初始化子类的同时给 父类 提供初始化参数 |
|
[求助]请问:什么叫做图位画刷,它和平常的画刷有写什么不一样呢?下面这段代码中,代码好像有点问题,就是想实现创建图位画刷?
你知道 DC 这东西吗??不知道的话看看吧,知道的话GDI还有什么呢?? 要改成什么样的功能呢???说说看 |
|
[讨论]]sougou浏览器是否也像360一样搜集用户的信息?
爱看看呗,有啥怕的? |
|
[求助]请问:什么叫做图位画刷,它和平常的画刷有写什么不一样呢?下面这段代码中,代码好像有点问题,就是想实现创建图位画刷?
PatBlt The PatBlt function paints the specified rectangle using the brush that is currently selected into the specified device context. The brush color and the surface color or colors are combined by using the specified raster operation. BOOL PatBlt( HDC hdc, // handle to DC int nXLeft, // x-coord of upper-left rectangle corner int nYLeft, // y-coord of upper-left rectangle corner int nWidth, // width of rectangle int nHeight, // height of rectangle DWORD dwRop // raster operation code ); Parameters hdc [in] Handle to the device context. nXLeft [in] Specifies the x-coordinate, in logical units, of the upper-left corner of the rectangle to be filled. nYLeft [in] Specifies the y-coordinate, in logical units, of the upper-left corner of the rectangle to be filled. nWidth [in] Specifies the width, in logical units, of the rectangle. nHeight [in] Specifies the height, in logical units, of the rectangle. dwRop [in] Specifies the raster operation code. This code can be one of the following values. Value Meaning PATCOPY Copies the specified pattern into the destination bitmap. PATINVERT Combines the colors of the specified pattern with the colors of the destination rectangle by using the Boolean XOR operator. DSTINVERT Inverts the destination rectangle. BLACKNESS Fills the destination rectangle using the color associated with index 0 in the physical palette. (This color is black for the default physical palette.) WHITENESS Fills the destination rectangle using the color associated with index 1 in the physical palette. (This color is white for the default physical palette.) Return Values If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. Windows NT/2000/XP: To get extended error information, call GetLastError. Remarks The values of the dwRop parameter for this function are a limited subset of the full 256 ternary raster-operation codes; in particular, an operation code that refers to a source rectangle cannot be used. Not all devices support the PatBlt function. For more information, see the description of the RC_BITBLT capability in the GetDeviceCaps function. Example Code For an example, see "Example of Menu-Item Bitmaps" in Using Menus. Requirements Windows NT/2000/XP: Included in Windows NT 3.1 and later. Windows 95/98/Me: Included in Windows 95 and later. Header: Declared in Wingdi.h; include Windows.h. Library: Use Gdi32.lib. 看下这个就知道,用位图画刷填充这个窗口客户区,如果位图的大小比这个区域小,那么区域内会出现位图的不断重复,在说了,你运行一下看看就知道了 |
|
[求助]请问:什么叫做图位画刷,它和平常的画刷有写什么不一样呢?下面这段代码中,代码好像有点问题,就是想实现创建图位画刷?
位图 平铺 在窗口的Rect区域之内 |
|
[讨论]读取句柄表,
找到错误了,指针 |
|
[求助]怎么处理sendmessage的返回值
自己写的窗口,还需要子类化??要是SDK不用子类化,要是MFC那就加个ON_MESSAGE(WM_MY_MESSAGE,OnMyMessage),主要是不知道你的代码,在这里乱猜测一通啊 |
|
[求助]ssdt hook NtDeviceIoControlFile问题
设备创建的时候有一个Flag属性 DO_DIRECT_IO DO_BUFFER_IO,要看这些属性,对应的属性不同,那么这个内存使用方法不同。记得是这样的 |
|
|
|
[原创][2011.01 更新SDI版本]2010的留念 [开源] 发个最近写的Pe工具~
spliter window ,但是右边的是在CView的基础上自己实现的CMyView之类的吗??还是MS提供的类呢??这种能够 自动支持选中状态的 |
|
[求助]如何监控QQ的文件传输
dll陷阱,试试 |
|
[求助]怎么处理sendmessage的返回值
给你我的理解啊,是这样,你的DLL已经注入到B程序,那么这个 所谓的77586会返回给B程序,你的A程序的发送代码没有给出,那我建议你这样 A: //hWnd_A ===程序A的一个窗口句柄,hwnd_B===程序B的窗口句柄 SendMessage(hWnd_B,WM_MY_MESSAGE,(LPARAM)hWnd_A,0);//这里记得保存hwnd_A啊,下面回馈信息要用 Dll中,你的那个: if(p->message == WM_USER+1) { ::MessageBox(0,"成功","提示",0); return 77586; } 替换成 if(p->message == WM_USER+1) { ::MessageBox(0,"成功","提示",0); ::SendMessage(hwnd_A,WM_MY_MESSAGE_BACK,77586,0); //当然这里的hwnd_A要在你发送WM_MY_MESSAGE消息的时候带过来,然后保存的适当的地方,只要这里能够访问到就好 } //仅供参考, |
|
[讨论]Win32 和 Ring0下 Inline Hook统一
感谢总结... |
|
[讨论]Win32 和 Ring0下 Inline Hook统一
说明白点吧??想知道原因 |
|
[讨论]Win32 和 Ring0下 Inline Hook统一
那请你说明白些原因吧 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值