hi guys!
Since i am trying to start coding my frist Win32 API based GUI app with VS, i have some generall questions to the Win32 GUI experts here!
Creating/Using Menus:
There are two ways to create/use normal and popup menus. One way is to create and use a *.rc (resource) file to define the menu... and the other way i know and personally me prefer, is to code it directly using Appendmenu() and other API calls... One benefit of directly coding the menu using API calls may be, that nobody can easy use a ResourceHacker and modify the Menus or other resources like GUI and so on...
Creating/Using GUI:
For creating/using GUIs, there are the same methods like for the menus. Using resource files or creating directly with pure Win32 API... as i said for the menu stuff before, i dont really like the way that ppl can modify the content with a resource editor.
So my question to the experts here, what way do you prefer to use and why? Is there something i miss or should know about using resources and coding stuff directly?
Handling GUIs:
When having an app, where the GUI is directly coded by hand (also no resource file), there are two or three API ways to access the created buttons (windows)... This confused me a little bit... in the past i used stuff like SetWindowText() and never used the *Dlg* commands like SetDlgItemText() ...
SetWindowText() vs SetDlgItemText() vs i.e. SendMessage()
So whats the best way to use when you can do the same stuff with this two/three API functions? Something i have/should know?
Generall:
I found on the web and in some books i looked two different version how people write stuff... upper/lower case... is there any standard ppl should use like for handles:
HWND hWnd // personally i would prefer this version...
HWND hwnd