a very small problem, i'm new... please help?

This is a discussion on a very small problem, i'm new... please help? within the C++ Programming forums, part of the General Programming Boards category; heya C board! I'm new to C++ programming and i want to make a carreer of it so i thought ...

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    13

    a very small problem, i'm new... please help?

    heya C board! I'm new to C++ programming and i want to make a carreer of it so i thought i might start doing a mini project now....

    now my very small and simple problem is.... i've created a window, named it etc used the basic window skeleton, all i want is to get rid of the console window that ALWAYS comes up when my window is run, and another thing, how can i make my window open maximised? when i run my code, the window is small and not maximised.

    Thanks for your help in advance

    Uberverse

  2. #2
    Registered User
    Join Date
    Nov 2007
    Posts
    13
    oh, my brother has just got rid of the console window for me, no worries, but how do i get it maxinised?

  3. #3
    Registered User mikeman118's Avatar
    Join Date
    Aug 2007
    Posts
    183
    I believe this thread goes in Windows Programming.

    Anyway, after creating the window you could use ShowWindow(), like this:
    Code:
    ShowWindow(hwnd, SW_MAXIMIZE)
    hwnd being the handle to the window you're trying to maximize.

    Welcome to the forums!

  4. #4
    Registered User
    Join Date
    Nov 2007
    Posts
    13
    Thanks! i will intergrate this into my code... i'll reply to you when i'm done

  5. #5
    Registered User
    Join Date
    Nov 2007
    Posts
    13
    thanks! it works! thanks for welcoming me i'm sure to be back with more problems, afterall i'm only a beginner :P

  6. #6
    Registered User
    Join Date
    Nov 2007
    Posts
    13
    oh, another quicky while i'm here... i've got my menu working (thank god, only took me an hour or so to figure out what was wrong with it :P) and i've got the File --> exit, when clicked, closes the program, now, how do i get my File --> Go To, when i click on Go To, to take me to the small window where i can browse my files, as if opening them, any ideas?

    thanks
    uberverse

  7. #7
    The larch
    Join Date
    May 2006
    Posts
    3,573
    Look into OPENFILENAME and GetOpenFileName / GetSaveFileName to create a file dialog. (And familiarize yourself with the msdn.com WinApi references.)

    And ask Windows specific questions in the respective board.
    I might be wrong.

    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
    Quoted more than 1000 times (I hope).

  8. #8
    Registered User
    Join Date
    Nov 2007
    Posts
    13
    thanks for the tip

    i'm going to practice dialog boxes now

    Uberverse

  9. #9
    Registered User
    Join Date
    Nov 2007
    Posts
    9
    You know what would help you? http://www.winprog.org/tutorial/ This tutorial will get you acquainted with the Windows API. Then use MSDN after that to find answers you seek. If you don't have net access, there is an old Win API help file, that was made a long time ago that will help. It may be old but everything is still mostly the same. As long as you only use the main help file you won't run into trouble. I doubt you can find this file online anymore, but I have a copy if you need it.

    By the way, just some advice. I've been using the Windows API for about 3 years (almost as long as I've been C/C++ programming). Its the best toolkit sometimes (and sometimes the only toolkit) That allows you to do something. However, its a huge pain a lot of the time. It takes so long to do a certain task sometimes it ridiculous. After you are comfortable with it, consider trying the wxWidgets toolkit. You can use that in conjunction with the Windows API if you need to do something Windows specific that wxWidgets can't do (this isn't very often).
    Last edited by Jack Walters; 11-10-2007 at 09:38 AM.

  10. #10
    Registered User
    Join Date
    Nov 2007
    Posts
    13
    again, thanks for the tips, my devc++ had a fault before, for some reason it didn't like resource files :P but it's okies i updated what i needed to update.. i think... anyway that's what i'm using the winprog.org lol, i try to limit myself to asking for help because if i can solve it myself all the better! but thanks you all are a good help

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Small Problem with double and integer adding?
    By Nathan the noob in forum C++ Programming
    Replies: 5
    Last Post: 03-28-2009, 04:16 PM
  2. Visual C++ small problem
    By gadu in forum C++ Programming
    Replies: 0
    Last Post: 03-10-2009, 10:45 PM
  3. Small problem with this array...
    By Merholtz in forum C Programming
    Replies: 7
    Last Post: 11-03-2008, 03:16 PM
  4. Help with a small problem (beginner)
    By piffo in forum C Programming
    Replies: 13
    Last Post: 09-29-2008, 04:37 PM
  5. Need Big Solution For Small Problem
    By GrNxxDaY in forum C++ Programming
    Replies: 8
    Last Post: 08-01-2002, 03:23 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21