CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - crect
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - crect - List
[
Other resource
]
PtInRect
DL : 0
这是我写的一个实现点选中多边形的数值算法,算法进行了特别设计,速度很快,可以判断点在浮点型的多变形中或在多边形外,可以移植到UNIX或linux平台,因为这两个平台没有CRect的PtInRect() 和 CRgn的PtInRgn()函数,这是一个很高效的算法-This is the one I wrote to achieve Polygon click the numerical algorithm, the algorithm specifically designed, very fast, points can be judged in the float over the deformation or polygons, can migrate to Linux or UNIX platform, as the two platforms of no CRect PtInRect (), and the CLASS PtInRgn () function, which is a very efficient algorithm
Update
: 2008-10-13
Size
: 38.15kb
Publisher
:
王为
[
Dialog_Window
]
BeautifulFace
DL : 0
一个华丽的界面 使用方法 方法一: ModifyStyle( WS_CAPTION, WS_MINIMIZEBOX, SWP_DRAWFRAME ) //设置图标 方法二: 不用上面的,但是要去掉对话框的title属性 void CPageDlg::OnPaint() { if (IsIconic()) { ... } else { // CDialog::OnPaint() //一定要去掉该句 CPaintDC dc(this) //对话框的dc CDC dcMem dcMem.CreateCompatibleDC(&dc) //创建与对话框dc兼容的内存dc CRect rect GetClientRect(&rect) BITMAP bitMap m_bmpBackground.GetBitmap(&bitMap) CBitmap *pbmpOld=dcMem.SelectObject(&m_bmpBackground) //将背景位图选入内存dc中 dc.StretchBlt(0,0,rect.Width(),rect.Height(),&dcMem,0,0,bitMap.bmWidth,bitMap.bmHeight,SRCCOPY) //将内存dc中的位图拉伸显示在对话框的dc中 //dc.BitBlt(0,0,rect.Width(),rect.Height(),&dcMem,0,0,SRCCOPY) } } -a gorgeous interface to use a method : ModifyStyle (WS_CAPTION, WS_MINIMIZEBOX. SWP_DRAWFRAME) / / Settings icon two ways : not above, However, to remove the title attribute dialog void CPageDlg : : OnPaint () (if (IsIconic ()) (...) else (/ / CDia log : : OnPaint () / / must remove the sentence CPaintDC dc (this) / / Dialog dc CDC dcMem dcMem.CreateCompatibleDC (
Update
: 2008-10-13
Size
: 145.03kb
Publisher
:
黄景天
[
Other
]
fullScreen_program
DL : 0
为MFC应用程序添加全屏幕显示功能 部分代码: 成员变量: BOOL m_bFullScreen //全屏幕显示标志 CRect m_FullScreenWindowRect //全屏幕显示窗口Rect WINDOWPLACEMENT m_wpPrev //用于保存正常视图时的窗口位置信息 CToolBar * m_wndFullScreenBar //全屏幕显示时的浮动工具条 成员函数: void OnMenuFullscreen() //全屏幕显示的处理函数 void OnGetMinMaxInfo() //捕获WM_GETMINMAXINFO消息以便允许你增加窗口大小 void OnUpdateViewFullScreen() //更新“全屏幕显示”菜单的状态 省略-MFC applications to add full-screen display of code : member variables : BOOL m_bFullScreen / / Full screen display signs CRect m_FullScr eenWindowRect / / Full screen display window Rect WINDOWPLACEMEN T m_wpPrev / / View for the preservation of the normal window of information CToolBar * m_wn dFullScreenBar / / full-screen display of floating tool for members of the function : OnMenuFullscreen void () / / Full screen showed that the processing function void On GetMinMaxInfo () / / catch information to allow WM_GETMINMAXINFO Xu you increase the window size void OnUpdateViewFullScreen () / / updated "Full screen shows that the" state of the menu omitted.
Update
: 2008-10-13
Size
: 4.39kb
Publisher
:
a
[
Other resource
]
CRect
DL : 0
CRect类应用 -CRect Applied CRect Applied Applied CRect
Update
: 2008-10-13
Size
: 21.94kb
Publisher
:
可乐
[
File Operate
]
notview
DL : 0
文件视图,CFrameWnd C Static CRect MoveWindow CreatePen CSize CDC SetBkMode SelectObject CPen LineTo SetTextColor CString TextOut CFont CreateFont DrawText CreateDC GetDeviceCaps DeleteDC GetObject GlobalAlloc GlobalLock GetStockObject GetDC SelectPalette RealizePalette GetDIBits ReleaseDC CreateFile WriteFile GlobalUnlock GlobalFree CloseHandle CPaintDC CBitmap CreateCompatibleDC CreateCompatibleBitmap PtInRect BitBlt DeleteObject CPoint ShowWindow ClientToScreen GetWindowDC GetWindowRect CFileDialog CWinApp CSingleDocTemplate CCommandLineInfo UpdateWindow CDialog CDataExchange CDocument CView CPrintInfo GetClientRect SetWindowLong GetWindowLong LoadLibrary GetProcAddress GetLastError FreeLibrary CreateDialog-document View, CFrameWnd CWnd CStatic CRect MoveWindow Creat ePen CSize CDC SetBkMode SelectObject CPen Lin eTo SetTextColor CString TextOut CFont Back Font DrawText CreateDC GetDeviceCaps DeleteD C GetObject GlobalAlloc GlobalLock GetStockO bject GetDC RealizePalette Get SelectPalette DIBits ReleaseDC CreateFile WriteFile Global Unlock GlobalFree CloseHandle CPaintDC CBitm ap CreateCompatibleDC CreateCompatibleBitm ap PtInRect BitBlt DeleteObject CPoint ShowWi ndow ClientToScreen GetWindowDC GetWindowRe ct CFileDialog CWinApp CSingleDocTemplate CC ommandLineInfo UpdateWindow CDialog CDataEx change CDocument CView CPrintInfo GetClientR ect SetWindowLong GetWindowLong LoadLibrary GetProcAddress GetLastError FreeLibrary Cre ateDialog
Update
: 2008-10-13
Size
: 26.1kb
Publisher
:
slansam
[
Other resource
]
24170047218
DL : 0
vc+sqlCOleSafeArray CWnd CDialog CDataExchange GetWindowRect EndDialog SetWindowText GetWindowText MessageBox CString CTime CCmdTarget CWinApp COleTemplateServer COleObjectFactory DestroyIcon LoadIcon GetSystemMenu CMenu LoadString AppendMenu IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon ShowWindow WinExec -vc sqlCOleSafeArray CWnd CDialog CDataEx change GetWindowRect EndDialog SetWindowTex t GetWindowText MessageBox CString CTime CCmd Target CWinApp COleTemplateServer COleObjec tFactory DestroyIcon LoadIcon GetSystemMenu CMenu LoadString AppendMenu IsIconic CPaintD C SendMessage function GetSystemMetrics CRect GetClie ntRect DrawIcon ShowWindow WinExec
Update
: 2008-10-13
Size
: 3mb
Publisher
:
hedda
[
Dialog_Window
]
base64
DL : 0
CWinApp CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu CString LoadString AppendMenu IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon ZeroMemory
Update
: 2008-10-13
Size
: 1.66kb
Publisher
:
鲜跃明
[
WinSock-NDIS
]
ServerTcp
DL : 0
相关函数/类: CWinApp CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu CString LoadString AppendMenu SetTextColor IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon CFileDialog CFile MessageBox
Update
: 2008-10-13
Size
: 14.42kb
Publisher
:
地方法
[
Develop Tools
]
RobocopHelp
DL : 0
COleSafeArray CWnd CDialog CDataExchange CTime GetWindowRect MessageBox GetWindowText SetWindowText GetDlgItem SetDlgItemText CString EndDialog CCmdTarget GetDlgItemText CWinApp COleTemplateServer COleObjectFactory DestroyIcon LoadIcon GetSystemMenu CMenu LoadString AppendMenu EnableWindow IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon ShowWindow WinExec
Update
: 2008-10-13
Size
: 28.06kb
Publisher
:
美眉
[
WEB Code
]
shebeihuanjinglei
DL : 0
坐标映射 Coping、CSize和CRect 颜色和颜色对话框 图形设备接口 画 笔 画 刷 绘 图 示 例 字体和字体对话框 常用文本输出函数 文本格式化属性 计算字符的几何尺寸 文档内容显示及其字体 改变 使用图形编辑器 位 图 图标 光 标 打印与打印预览机制 打印与打印预览的设计 完整的示例
Update
: 2008-10-13
Size
: 188.18kb
Publisher
:
马刚
[
Other resource
]
U盘自动复制
DL : 0
LoadLibrary GetProcAddress FreeLibrary LocalFree GetVersionEx CloseHandle MapViewOfFile UnmapViewOfFile ExitProcess SetUnhandledExceptionFilter CWinApp OpenMutex CreateMutex CreateThread DeviceIoControl CString GetLogicalDrives GetDriveType CreateFile GetSystemDirectory FindFirstFile GetLastError CopyFile FindClose Sleep CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu LoadString AppendMenu IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon DefWindowProc ShowWindow
Update
: 2008-10-13
Size
: 9.97kb
Publisher
:
王中才
[
Hook api
]
zjdQQ
DL : 0
CFile CWinApp CString CloseHandle GetCurrentProcessId CallNextHookEx GetForegroundWindow SendMessage GetAsyncKeyState ZeroMemory GetKeyNameText SetWindowsHookEx UnhookWindowsHookEx EnumWindowsProc GetProp EnumWindows LoadLibrary GetProcAddress ShowWindow CDialog CDataExchange CWnd DestroyIcon LoadIcon SetProp GetSystemMenu CMenu LoadString AppendMenu CFileFind CreateFile IsIconic CPaintDC GetSystemMetrics CRect GetClientRect DrawIcon GetModuleFileName RegOpenKey RegSetValueEx
Update
: 2008-10-13
Size
: 1.39kb
Publisher
:
gulin
[
Other resource
]
PickUpINI
DL : 0
EVC 实现GetPrivateProfileString的功能,并且可以转换成CRect、CSize、COLORREF等类型
Update
: 2008-10-13
Size
: 45.07kb
Publisher
:
liuzhx
[
WEB Code
]
asp.net__liang
DL : 0
asp.net C# asp.net技术方案 MessageBox SetTimer IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon GetWindowText WNetAddConnection WNetAddConnection2 GetCurrentProcess OpenProcessToken LookupPrivilegeValue AdjustTokenPrivileges InitiateSystemShutdown KillTimer
Update
: 2008-10-13
Size
: 1.26mb
Publisher
:
leech
[
Special Effects
]
CRectTracker
DL : 0
关于CRect类的使用心得,希望大家多指正!
Update
: 2008-10-13
Size
: 6.71kb
Publisher
:
liliang
[
GUI Develop
]
newasp200611413439593
DL : 0
int PosFromChar(UINT nChar) // 通过指定的字符获得其x轴的位置 int CharFromPos(int nPosX) // 通过给定的x轴的位置获得相应的字符 void CutString() // 剪切字符串 void PasteString() // 粘贴字符串 void CopyString() // 拷贝字符串 void MakeBKGround(CDC *pDC, COLORREF clrBegin, COLORREF clrEnd, CRect rect) // 生成窗口背景 CString m_strEdit // 当前包含的文本。 CString m_strSelect // 当前选择的文本。 CPoint m_ptCursor // 当前光标的位置。 CPoint m_ptTxtBegin // 文本的起始位置。 CPoint m_ptFirst // 鼠标左键按下时的第一点位置。 CPoint m_ptSecond // 鼠标当前的位置。 int m_nCharPos // 当前光标处于第几个字符的后面,从0开始计数。 int m_nShowChar // 在编辑框中第一个显示的字符,从0开始计数。 int m_nMaxShowChars // 在编辑框中一次最多显示的字符数量 。 int m_nSelectBegin // 选择的字符的起始位置。 int m_nSelectEnd // 选择的字符的终止位置。 CBitmap m_BmpBK // 背景图片。 CFont m_TxtFont // 文本的字体。 TEXTMETRIC m_tm // 文本字体的信息。
Update
: 2008-10-13
Size
: 37.04kb
Publisher
:
yang
[
Other resource
]
aaaa
DL : 1
VC之改变控件的大小和位置 用CWnd类的函数MoveWindow()或SetWindowPos()可以改变控件的大小和位置。 void MoveWindow(int x,int y,int nWidth,int nHeight) void MoveWindow(LPCRECT lpRect) 第一种用法需给出控件新的坐标和宽度、高度; 第二种用法给出存放位置的CRect对象; 例:
Update
: 2008-10-13
Size
: 3.93kb
Publisher
:
gong
[
Static control
]
static1
DL : 0
CStatic文本的外观 首先在单击1行中调用CTestWindow::Create函数。它是CFrameWnd对象的Create函数,因为CTestWindow从CFrameWnd继承了其行为。所以第一行中的代码指定了窗口大小应该为200×200个象素,窗口的左上角被初始化在屏幕的0,0位置处。常数rectDefault可用CRect参数来替代。
Update
: 2008-10-13
Size
: 1004byte
Publisher
:
chenwb
[
Other resource
]
CRect
DL : 0
CRect类应用 -CRect Applied CRect Applied Applied CRect
Update
: 2025-02-17
Size
: 22kb
Publisher
:
可乐
[
VC/MFC
]
CRect类
DL : 0
这是关于CRect类的介绍,有利于对其的了解。(An introduction to the CRect class)
Update
: 2025-02-17
Size
: 15kb
Publisher
:
常帅帅
«
1
2
3
4
»
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.