View previous topic :: View next topic |
Author |
Message |
180fok Newbie cheater
Reputation: 0
Joined: 08 Jul 2010 Posts: 16
|
Posted: Thu Jul 08, 2010 3:41 pm Post subject: Beginner question about c++ WinAPI |
|
|
Hi, I'm not really beginner, I've been learning c++ over the internet for 1 year, but there is always something that stops me from doing my stuff.
Why can't I see the initialization of szTitle? When I create a new project, the form's title is the same as the project's name I chose. But I can't see where the TCHAR szTitle is initialized! Thanks for your answer!
|
|
Back to top |
|
 |
AtheistCrusader Grandmaster Cheater
Reputation: 6
Joined: 23 Sep 2006 Posts: 681
|
Posted: Thu Jul 08, 2010 3:43 pm Post subject: |
|
|
Most probably in some header file.
|
|
Back to top |
|
 |
180fok Newbie cheater
Reputation: 0
Joined: 08 Jul 2010 Posts: 16
|
Posted: Thu Jul 08, 2010 3:44 pm Post subject: |
|
|
masterkert3° wrote: | Most probably in some header file. |
I edited my op from "declaration" to initialization. Sorry, I mixed them up.
|
|
Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Thu Jul 08, 2010 4:00 pm Post subject: |
|
|
showing us some code might be helpful
|
|
Back to top |
|
 |
180fok Newbie cheater
Reputation: 0
Joined: 08 Jul 2010 Posts: 16
|
Posted: Thu Jul 08, 2010 4:03 pm Post subject: |
|
|
Slugsnack wrote: | showing us some code might be helpful |
In vc++ 2010 when creating a new w32 project, in the "projectname".cpp
Btw I realized that my title can be changed in the resource file!
|
|
Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Thu Jul 08, 2010 4:42 pm Post subject: |
|
|
yes, resources are not the only way of creating guis. that's why i had to ask. i suggest in the future if you want help with programming you post some code
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Thu Jul 08, 2010 6:50 pm Post subject: |
|
|
Sounds like you are just creating an basic project making the IDE automatically create the basics for you. Which is why it will default the values of some things to the projects name.
masterkert already pointed out what you are basically asking, the variable holding the window title can be found in one of the files automatically created for the project. You can change the variable to whatever you want, as well as changing it's value. It's just there already because of how you started the project.
_________________
- Retired. |
|
Back to top |
|
 |
bhpianist Cheater
Reputation: 1
Joined: 17 Apr 2010 Posts: 38
|
Posted: Thu Jul 08, 2010 10:31 pm Post subject: |
|
|
By the way, the only time you should ever use a wizard is when it's generating code you already understand.
|
|
Back to top |
|
 |
|