Anyone know how to determine which polygon a user has clicked on screen, without using getPixel. I want to add a function that allows a user to delete Polygons from the screen by clicking on it. I want to do this by only referring to coordinates of Polygon (Polygon is 4 coordinates).
Any help...
I created a dialog box with two buttons and various text boxes that I can edit. I have figured out how to draw to the dialog box but it is messy. How can i set the background of the dialog box, would approaching this a different way be better such as using something besides a dialogBox
Thanks...
As you can see i dont use the WM_PAINT function because this code is more efficient for drawing to screen for my program. However this button here won't appear on screen.
I'm a really novice programmer and i'm trying to tweak another program so i dont know where I am going wrong.
hwndMagnify...
Currently I'm trying to create Polygons that are not black which I assume is the default.
This is the code I have but I'm obviously I'm missing something to override the default brush for SetPolyFillMode
BuildingList::drawPolygon(HDC hdc, COLORREF colour)
{
HBRUSH hbrush;
hbrush =...
I really need help on this, i'm using the InvalidateRect function with a timer to update the screen but its slow redrawing and is causing a flicker effect. Is there any way of improving this function to emulate the below
case WM_TIMER:
InvalidateRect (hWnd,NULL,FALSE);
return 0;
case...
Hi, very novice programmer here, When I run this function, it prints out the first messageBox (ie when count == 0 but it doesn't go to the next messageBox, i know that they're are more than 1 entry in the file I'm loading.
any ideas, its very similar to code that i got to work with a static...
In OOP, doesn't anyone have any good code on bring data in from a file, separating it out, into a linked list (for example), and then adding, deleting from it and then saving it back out to file.
I need to be able to access these functions from a menu in the main part of my program and i'm...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.