Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 156 results for
createsolidbrush
- Page 1
Trouble changing shape color when clicked on, win32 GUI programming
Programming
Software Development
13 Years Ago
by smkdude
…HBRUSH BrushGreen =
CreateSolidBrush
(RGB(0, 125, 5)); HBRUSH BrushRed =
CreateSolidBrush
(RGB(255, 2, 5)); HBRUSH BrushYellow =
CreateSolidBrush
(RGB(250, 255…, 5)); HBRUSH BrushBlue =
CreateSolidBrush
(RGB(0, 2…
Help with GDI
Programming
Software Development
19 Years Ago
by PeterPurple
… RGB(255, 255, 255)); SelectObject(hdc, hPen); NewBrush =
CreateSolidBrush
(RGB(255, 255, 255)); SelectObject(hdc, NewBrush); } void BlackOutlineBlackFill… RGB(0, 0, 0)); SelectObject(hdc, hPen); NewBrush =
CreateSolidBrush
(RGB(0, 0, 0)); SelectObject(hdc, NewBrush); } I …
drawing outside client area
Hardware and Software
Information Security
17 Years Ago
by h_howee
… the drawing [code] void C_Graphics::DrawAll(C_Brick Bricks[]) { hbr =
CreateSolidBrush
(RGB(0,0,0)); RECT r; r = Player.Get_BallInfo(); Ellipse… Bricks[i].Get_Info_ptr(), hbr); } DeleteObject(hbr); } void C_Graphics::ClearScreen() { hbr =
CreateSolidBrush
(RGB(255, 255, 255)); RECT r; GetClientRect(g_hwnd, &r…
drawing outside client area
Programming
Software Development
17 Years Ago
by h_howee
… the drawing [code] void C_Graphics::DrawAll(C_Brick Bricks[]) { hbr =
CreateSolidBrush
(RGB(0,0,0)); RECT r; r = Player.Get_BallInfo(); Ellipse… Bricks[i].Get_Info_ptr(), hbr); } DeleteObject(hbr); } void C_Graphics::ClearScreen() { hbr =
CreateSolidBrush
(RGB(255, 255, 255)); RECT r; GetClientRect(g_hwnd, &r…
Array of createfile handles
Programming
Software Development
14 Years Ago
by lostangel556
…mycolor; COLORREF oldmycolor; //paint old Color on screen HBRUSH hOldBrush = ::
CreateSolidBrush
( oldmycolor ); ::FillRect( hdc, prc, hOldBrush ); int y = 0…7, &bytes_written, NULL); //paint Color on screen HBRUSH hNewBrush = ::
CreateSolidBrush
( mycolor ); ::FillRect( hdc, prc, hNewBrush ); oldmycolor = mycolor; //…
Re: WinAPI help
Programming
Software Development
13 Years Ago
by vadalaz
… HDC hDC = GetDC(hwnd); GetClientRect(hwnd, &tile_rect); HBRUSH hbrush =
CreateSolidBrush
( RGB(40, 40, 120) ); FillRect(hDC, &tile_rect, hbrush); DeleteObject… HDC hDC = GetDC(hwnd); GetClientRect(hwnd, &tile_rect); HBRUSH hbrush =
CreateSolidBrush
( RGB(120, 40, 40) ); FillRect(hDC, &tile_rect, hbrush); …
Help with Visual C++
Programming
Software Development
13 Years Ago
by yingfo
….hbrBackground = (HBRUSH)(COLOR_WINDOW+1); //wc.hbrBackground =
CreateSolidBrush
(RGB(0xFF, 0xC0, 0x80)); // RRGGBB wc.hbrBackground =
CreateSolidBrush
(COLORREF(0x00C0FFE0)); // 00BBGGRR RegisterClassEx(&wc); //if…
Trying to colour a background in a window
Programming
Software Development
9 Years Ago
by chris99
… code I get the following errors: "undefined reference to
CreateSolidBrush
@4" and "undefined reference to DestroyObject@4"… nCmdShow) { WNDCLASSEX wc; HWND hwnd; MSG Msg; HBRUSH hBrush; hBrush =
CreateSolidBrush
(RGB(0,24,56)); //Step 1: Registering the Window Class…
[WIN32 and GDI and GDIPLUS] - why the button draw size is to big?
Programming
Software Development
9 Years Ago
by cambalinho
…(test->CtlType==ODT_BUTTON) { SelectObject(imgButton,
CreateSolidBrush
(GetSysColor(COLOR_BTNFACE))); HTHEME hTheme = OpenThemeData(inst…FillRect(imgButton, &test->rcItem,(HBRUSH)
CreateSolidBrush
(RGB(192,192,192))); DrawEdge(imgButton, &…
win32 - how testing pixels of the WS_TRANSPARENT control?
Programming
Software Development
9 Years Ago
by cambalinho
…FillRect(test->hDC,&test->rcItem,
CreateSolidBrush
(inst->clrBackColor)); else FillRect(test->hDC,&…) GetStockObject(NULL_BRUSH)); FillRect(imglabel,&test->rcItem,
CreateSolidBrush
(inst->clrBackColor)); if(inst->imgtest.haveimage())…
Re: [win32] - how put the static transparent?
Programming
Software Development
9 Years Ago
by cambalinho
…FillRect(test->hDC,&test->rcItem,
CreateSolidBrush
(inst->clrBackColor)); else FillRect(test->hDC,&…) GetStockObject(NULL_BRUSH)); FillRect(imglabel,&test->rcItem,
CreateSolidBrush
(inst->clrBackColor)); if(inst->imgtest.haveimage())…
Memory leak in game
Programming
Software Development
16 Years Ago
by William Hemsworth
….cbWndExtra = 0; wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = (HBRUSH)
CreateSolidBrush
(RGB(255,255,255)); wc.hInstance = hInstance; wc.hIcon = LoadIcon…
GetPixel
Programming
Software Development
15 Years Ago
by TheBeast32
… cyClient, int sx, int sy) { HBRUSH hBrush ; RECT rect ; hBrush =
CreateSolidBrush
(crColor) ; SetRect (&rect, sx, sy, cxClient, cyClient) ; FillRect (hdc…
List Box Problem
Programming
Software Development
15 Years Ago
by darkivader
…(NULL), MAKEINTRESOURCE(IDI_ICON1)); wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground =
CreateSolidBrush
(RGB(150, 150, 150)); wc.lpszMenuName = MAKEINTRESOURCE(IDR_MENU1); wc.lpszClassName…
API structures or MFC Classes?
Programming
Software Development
15 Years Ago
by bhoot_jb
… = AfxGetApp()->LoadStandardIcon (IDI_ERROR); // here defaultBrush_ is : CBrush defaultBrush_; defaultBrush_.
CreateSolidBrush
(RGB (0,0,255)); HBRUSH tempBrush; tempBrush = (HBRUSH) defaultBrush_; LPCTSTR…
User Drawn Form
Programming
Software Development
15 Years Ago
by VBNick
… following code: case WM_PAINT: hDC = BeginPaint(hWnd, &ps); hBrush =
CreateSolidBrush
(RGB(255,0,0)); FillRect(hDC, &ps.rcPaint, hBrush…
MSVC++ Express 8 error C2228
Programming
Software Development
15 Years Ago
by n321
… font HFONT g_verfont; // default font HBITMAP g_bmpLogo = NULL; HBRUSH g_hbrBackground =
CreateSolidBrush
(RGB(0, 0, 0)); //HINSTANCE g_hInst; // RegisterWndClass(): Register a window…
Unresolved External !#?%&
Programming
Software Development
15 Years Ago
by ShadowScripter
… black_pen = CreatePen( PS_SOLID, 5, RGB(150,150,150)); HBRUSH black_brush =
CreateSolidBrush
( RGB(255,255,0)); SelectObject( hdc, black_pen); SelectObject( hdc, black_brush…
SendMessage
Programming
Software Development
14 Years Ago
by MasterDucky
…; wc.cbSize = sizeof(WNDCLASSEX); wc.cbWndExtra = 0; wc.hbrBackground = (HBRUSH)
CreateSolidBrush
(RGB(100,100,100)); wc.hCursor = LoadCursor(NULL,IDC_ARROW); wc…
WinAPI help
Programming
Software Development
13 Years Ago
by vadalaz
… the tile class void RegisterTile() { WNDCLASSEX Tile = {0}; HBRUSH hBrush =
CreateSolidBrush
( RGB(100, 100, 100) ); Tile.cbSize = sizeof(Tile); Tile.lpszClassName…
HOW TO INTEGRATE THESE TWO CODE to make a calculator
Programming
Software Development
11 Years Ago
by ashish karna
…,int wParam,int lParam) { static HBRUSH ReUsableBrush; DeleteObject(ReUsableBrush); ReUsableBrush=
CreateSolidBrush
(BkColr); SetTextColor((HDC)wParam,TxtColr); SetBkColor((HDC)wParam,BkColr); return…
PLPLOT - CodeBlocks?
Programming
Software Development
11 Years Ago
by daino
…(wingcc.c.obj):wingcc.c:(.text+0x1449): undefined reference to `
CreateSolidBrush
@4' C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc…
[win32] - how changing the window\DC backcolor?
Programming
Software Development
10 Years Ago
by cambalinho
the WindowClass.hbrBackground=(HBRUSH)
CreateSolidBrush
(RGB(0,255,0)); change the all windows backcolor, registed …
Re: [win32] - how changing the window\DC backcolor?
Programming
Software Development
10 Years Ago
by nullptr
Something like this? hbrBackground =
CreateSolidBrush
(RGB(241, 245, 251)); // case WM_PAINT: { LPPAINTSTRUCT lpps = new PAINTSTRUCT; HDC hdc = BeginPaint(hWnd, lpps); FillRect(hdc, &lpps->rcPaint, hbrBackground); // other code }
how copy the parent HDC?
Programming
Software Development
9 Years Ago
by cambalinho
…;Paint==NULL) { RECT f; GetClientRect(hwnd,&f); HBRUSH s=
CreateSolidBrush
(inst->clrBackColor); SelectObject(hdc,(HBRUSH)s); if (inst->…
[win32] - how put the static transparent?
Programming
Software Development
9 Years Ago
by cambalinho
…(inst->blnTransparent!=true) FillRect(ps.hdc,&ps.rcPaint,
CreateSolidBrush
(inst->clrBackColor)); if(inst->imgtest.haveimage()) DrawHICONtoHDC(ps…
Changing the color of elements - Win API
Programming
Software Development
5 Years Ago
by Addison111
…: COLORREF colorref; colorref = RGB(0,0,255); HBRUSH hBrushBtn; hBrushBtn =
CreateSolidBrush
(colorref); return ((LRESULT)hBrushBtn); break; 2. How do I create…
Re: GUI colouring
Programming
Software Development
16 Years Ago
by bops
…)) { case (txtMessage): { SetTextColor((HDC)wParam,(COLORREF)
CreateSolidBrush
(RGB(255,255,255))); SetBkColor((HDC)wParam,(COLORREF)
CreateSolidBrush
(RGB(0,0,0))); } } } [/code] [code…
Re: win32 window painting fails
Programming
Software Development
17 Years Ago
by andrax
…isSelect(x,y)) FillRect(hdc, &rect,
CreateSolidBrush
(RGB(0,0,255))); else if(map.isHighlight…(x,y)) FillRect(hdc, &rect,
CreateSolidBrush
(RGB(255,255,255))); else FillRect(hdc, &…amp;rect,
CreateSolidBrush
(background)); FrameRect(hdc, &rect, (HBRUSH)GetStockObject(…
Re: Good Day
Hardware and Software
Information Security
15 Years Ago
by Tedain
…, SelectPalette, RealizePalette, SetDIBits, CreateDCW, CreateDIBitmap, CreateCompatibleBitmap, SetBitmapBits, DeleteDC, GdiValidateHandle, GdiProcessSetup,
CreateSolidBrush
, GetStockObject, CreateCompatibleDC, GdiConvertBitmapV5, GdiCreateLocalEnhMetaFile, GdiCreateLocalMetaFilePict, GetRgnBox, CombineRgn, OffsetRgn, MirrorRgn, EnableEUDC…
1
2
3
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC