GetStockObject是一個Windows API函式,該函式檢索預定義的備用筆、刷子、字型或者調色板的句柄,函式原型是HGDIOBJ GetStockObject(int)。
基本介紹
- 中文名:GetStockObject
- 外文名:GetStockObject
- 類別:Windows API函式
- 功能:檢索預定義
- 原型:HGDIOBJ GetStockObject(int)
GetStockObject是一個Windows API函式,該函式檢索預定義的備用筆、刷子、字型或者調色板的句柄,函式原型是HGDIOBJ GetStockObject(int)。
GetStockObject是一個Windows API函式,該函式檢索預定義的備用筆、刷子、字型或者調色板的句柄,函式原型是HGDIOBJ GetStockObject(int)。...
使用DC_BRUSH或DC_PEN參數的GetStockObject函式可以與SetDCPenColor和SetDCBrushColor函式互換。ICM:如果ICM可用就執行顏色管理。速查:Windows NT:5.0及以上版本;Windows:...
wcex.hbrBackground = (HBRUSH) GetStockObject( WHITE_BRUSH );wcex.lpszMenuName = NULL;wcex.lpszClassName = "My Class";...
CFont *pFont=CFont::FromHandle((HFONT)::GetStockObject(ANSI_VAR_FONT));CRect rect1(150,20,350,100);m_combobox.Create(WS_CHILD|WS_VISIBLE|CBS_...
設定顏色可以參見設定筆或畫筆顏色的例子,使用DC_BRUSH或DC_PEN參數的GetStockObject函式可與SetDCPenColor和SetDCBrushColor函式交換使用。...
DeleteObject(SelectObject(hDC,GetStockObject(SYSTEM_FONT)));ReleaseDC(hwnd,hDC);}(4)中的±對輸出是有影響的,見下圖。亦即:當邏輯坐標系y軸與設備坐標系y...
wndclass.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH); //視窗背景wndclass.hCursor = LoadCursor(NULL,IDC_ARROW); //滑鼠...
NULL,AfxRegisterWndClass(NULL,0,(HBRUSH)::GetStockObject(WHITE_BRUSH),0),"實驗程式",WS_OVERLAPPEDWINDOW,rect,NULL,NULL,NULL);...
wc.hbrBackground = (HBRUSH) GetStockObject(WHITE_BRUSH); //背景wc.lpszMenuName = 0; //選單指針wc.lpszClassName = szWindowClass; //窗體類名wc....
對基準點的解釋依賴於當前字元對齊模式,一個應用程式可以調用GetTextAlign來獲得...FillRect(hdc, &r, GetStockObject(GRAY_BRUSH))。TextOut速查 編輯 ...
SelectObject(hDC,hFont);TextOut(hDC,0,0,szStr,lstrlen(szStr));DeleteObject(SelectObject(hDC,GetStockObject(SYSTEM_FONT)));...
DeleteObject ((HBRUSH)SetClassLong (IntPtr hWnd,int nlndex,long dwNewLong)GetStockObject (WHITE_BRUSH))) ; //參考Windows程式設計第五版P361...
wndclass.hbrBackground =(HBRUSH) GetStockObject(BLACK_BRUSH); wndclass.lpszClassName =WND_CLS_NAME; //下面是利用wndcalss結構體的信息註冊一個視窗類 if...
(HBRUSH)GetStockObject(WHITE_BRUSH);wndclass.lpszMenuName=NULL;wndclass.lpszClassName=szAppName;if(!RegisterClass(&wndclass)){MessageBox(NULL,TEXT("This...
(HBRUSH)GetStockObject(WHITE_BRUSH); wndclass.lpszMenuName=NULL; wndclass.lpszClassName=szAppName; if(!RegisterClass(&wndclass)) { MessageBox(NULL,TEXT("...
由參數hbr定義的畫刷必須是由CreateHatchBrush、CreatePatternBrush或CreateSolidBrush創建的,或者是由使用GetStockObject獲得的。如果RECT結構中的底部成員的值少於或等於...
此外,你可以用GetStockObject來獲得一個庫存畫刷句柄。如果指定一個顏色值,必須是標準系統顏色(所選擇的顏色必須加1)如FillRect(hdc, &rect, (HBRUSH)(COLOR_END...
(HBRUSH) ::GetStockObject(WHITE_BRUSH), ::LoadIcon(NULL, IDI_APPLICATION));}catch (CResourceException* pEx){ AfxMessageBox(_T("Couldn't register ...
(HBRUSH)GetStockObject(WHITE_BRUSH); wndclass.lpszMenuName=NULL; wndclass.lpszClassName=szAppName; if(!RegisterClass(&wndclass)) { MessageBox(NULL,TEXT("...
wndclass.hbrBackground = (HBRUSH) GetStockObject (WHITE_BRUSH) ;wndclass.lpszMenuName = NULL ;wndclass.lpszClassName = szAppName ;...
wndclass.hbrBackground = (HBRUSH) GetStockObject (WHITE_BRUSH) ;wndclass.lpszMenuName = NULL ;wndclass.lpszClassName = szAppName ;...
wndclass.hbrBackground = (HBRUSH) GetStockObject (WHITE_BRUSH) ;wndclass.lpszMenuName = NULL ;wndclass.lpszClassName = szAppName ;...
wndclass.hbrBackground = GetStockObject (WHITE_BRUSH) ;wndclass.lpszMenuName = NULL ;wndclass.lpszClassName = szAppName ;if (!RegisterClass (&wndclass)...
GetEnhMetaFileHeader()函式來獲取增強型元檔案頭,該檔案頭中的一個成員變數表明...hbrOld = SelectObject(hDC, GetStockObject(GRAY_BRUSH));/* Draw a circle...
wndclass.hbrBackground = (HBRUSH) GetStockObject (WHITE_BRUSH) ;wndclass.lpszMenuName = NULL ;wndclass.lpszClassName = szAppName ;...