Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by lemming999

  1. lemming999

    unable to transfer data to pointer

    The problem here is that first you are are dealing with a string such as char *welcome = {'h','e','l','l','o'}; First of all this line input[count]='#'; will overwrite the number in the string referring to count for instance if 0, now your string is {'#','e','l','l','o'}; or 2...
  2. lemming999

    Polygon trouble. How to determine location

    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...
  3. lemming999

    Help with drawing windows.

    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...
  4. lemming999

    I cant get my buttons to appear in my screen

    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...
  5. lemming999

    Using hbrush, how to override the default colour

    Thanks Jeffray that worked perfectly
  6. lemming999

    Using hbrush, how to override the default colour

    Hi Jeffray, I ran the code you gave me, and its giving me this error initializing' : cannot convert from 'void *' to 'struct HBRUSH__ *' Conversion from 'void*' to pointer to non-'void' requires an explicit cast I'm sorry but I dont understand what this error is? Lemming
  7. lemming999

    Using hbrush, how to override the default colour

    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 =...
  8. lemming999

    There are always strings tied to strings

    to get whitespace (by this I assume you mean two names) you can do the following #include <iostream.h> #include <string> using namespace std; int main() { char firstName[20],surname[20]; cout << &quot;Please type your first name here:&quot; << endl; cin >> firstname; cout...
  9. lemming999

    I really need help on this, i'm usi

    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...
  10. lemming999

    Help with code used for reading in a file

    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...
  11. lemming999

    C++-linked list

    Did you ever get an answer to this problem? Its just I'm having a similar problem
  12. lemming999

    Visual C++, help with linked list

    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...

Part and Inventory Search

Back
Top