Location:
Search - GetClientRect
Search list
Description: 一个华丽的界面
使用方法
方法一:
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 (
Platform: |
Size: 148507 |
Author: 黄景天 |
Hits:
Description: 文件视图,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
Platform: |
Size: 26729 |
Author: slansam |
Hits:
Description: 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
Platform: |
Size: 3143724 |
Author: hedda |
Hits:
Description: SetCursor CWnd LoadCursor DestroyWindow CDialog GetClientRect C Button GetStockObject CFont GetWindowLong SetWindowLong GetWindowRect BeginDeferWindowPos EnableWindow DeferWindowPos EndDeferWindowPos InvalidateRect UpdateWindow GetCursorPos CPoint SetCapture GetCapture ReleaseCapture CallWindowProc CPaintDC DrawEdge PtInRect SetFocus CMenu-SetCursor CWnd LoadCursor DestroyWindow CDialog GetClientRect C Button GetStock Object CFont GetWindowLong SetWindowLong Get WindowRect BeginDeferWindowPos EnableWindo w DeferWindowPos EndDeferWindowPos Invalida teRect UpdateWindow GetCursorPos CPoint SetC apture GetCapture ReleaseCapture CallWindow Proc CPaintDC DrawEdge PtInRect SetFocus CMen u
Platform: |
Size: 534933 |
Author: zzz |
Hits:
Description: CWinApp CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu CString LoadString AppendMenu IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon ZeroMemory
Platform: |
Size: 1702 |
Author: 鲜跃明 |
Hits:
Description: 相关函数/类:
CWinApp CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu CString LoadString AppendMenu SetTextColor IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon CFileDialog CFile MessageBox
Platform: |
Size: 14769 |
Author: 地方法 |
Hits:
Description: 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
Platform: |
Size: 28729 |
Author: 美眉 |
Hits:
Description:
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
Platform: |
Size: 10214 |
Author: 王中才 |
Hits:
Description: 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
Platform: |
Size: 1428 |
Author: gulin |
Hits:
Description: asp.net C# asp.net技术方案
MessageBox SetTimer IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon GetWindowText WNetAddConnection WNetAddConnection2 GetCurrentProcess OpenProcessToken LookupPrivilegeValue AdjustTokenPrivileges InitiateSystemShutdown KillTimer
Platform: |
Size: 1325821 |
Author: leech |
Hits:
Description: 获取客户端区域的大小,适合界面编程数学者学习
Platform: |
Size: 33102 |
Author: 王子 |
Hits:
Description: Rectangle GetDC SetROP2 ReleaseDC CreateRectRgn SelectClipRgn DeleteObject SelectObject CreatePen CreateSolidBrush SetTextColor SetBkColor SetRect LockResource UnlockResource GetCursor LoadCursor GetStockObject LineTo SetCursor ShowCursor DrawText LoadString MessageBox CreateFontIndirect GetTextMetrics ClientToScreen SetCursorPos GetMessageTime GetKeyState GetClientRect SetWindowPos BeginPaint EndPaint DefWindowProc
Platform: |
Size: 95919 |
Author: 安新军 |
Hits:
Description: 一个华丽的界面
使用方法
方法一:
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 (
Platform: |
Size: 148480 |
Author: 黄景天 |
Hits:
Description: 文件视图,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
Platform: |
Size: 26624 |
Author: slansam |
Hits:
Description: 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
Platform: |
Size: 3143680 |
Author: |
Hits:
Description: SetCursor CWnd LoadCursor DestroyWindow CDialog GetClientRect C Button GetStockObject CFont GetWindowLong SetWindowLong GetWindowRect BeginDeferWindowPos EnableWindow DeferWindowPos EndDeferWindowPos InvalidateRect UpdateWindow GetCursorPos CPoint SetCapture GetCapture ReleaseCapture CallWindowProc CPaintDC DrawEdge PtInRect SetFocus CMenu-SetCursor CWnd LoadCursor DestroyWindow CDialog GetClientRect C Button GetStock Object CFont GetWindowLong SetWindowLong Get WindowRect BeginDeferWindowPos EnableWindo w DeferWindowPos EndDeferWindowPos Invalida teRect UpdateWindow GetCursorPos CPoint SetC apture GetCapture ReleaseCapture CallWindow Proc CPaintDC DrawEdge PtInRect SetFocus CMen u
Platform: |
Size: 534528 |
Author: zzz |
Hits:
Description: CWinApp CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu CString LoadString AppendMenu IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon ZeroMemory -CWinApp CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu CString LoadString AppendMenu IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon ZeroMemory
Platform: |
Size: 1024 |
Author: 鲜跃明 |
Hits:
Description: 相关函数/类:
CWinApp CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu CString LoadString AppendMenu SetTextColor IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon CFileDialog CFile MessageBox -Correlation function/category: CWinApp CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu CString LoadString AppendMenu SetTextColor IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon CFileDialog CFile MessageBox
Platform: |
Size: 618496 |
Author: 地方法 |
Hits:
Description: 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 -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
Platform: |
Size: 28672 |
Author: 美眉 |
Hits:
Description: 获取客户端区域的大小,适合界面编程数学者学习-Access to the client area size, suitable for mathematical programming interface to acquire
Platform: |
Size: 1921024 |
Author: 王子 |
Hits: