Info Posted March 1, 2011 Share Posted March 1, 2011 Which way should I use? Are there any differences? Which way do you use? Link to comment Share on other sites More sharing options...
Mat Posted March 1, 2011 Share Posted March 1, 2011 I usually go with CreateWindowEx for my main window, and then additional dialogs are resources. I have seen people that just use resource dialogs, and I've also seen people that do everything using CreateWindowEx. What you must remember is that using resource dialogs means that the computer does all the calls for you, but the same thing happens in the end.I did a quick google for you:http://www.asmcommunity.net/board/index.php?topic=27423.0Funny enough, both dialogs and normal wondows are created byCreateWindowEx, the difference is that a dialog is fed throughthe internal windows dialog engine so it is specified in dialogunits for dimensions rather than pixels as in CreateWindowExdirectly.A dialog's size is basically determined by the size of the systemfont so that if a dialog app is run on a machine with a differentfont size, it autosizes and displays in proportion to the systemfont.Dialogs are easier to code but CreateWindowEx is more powerful asyou can do many more things with it. The price of going lowerlevel is that you must do more coding to get the extra power.Dialogs automate things like tab movement between controls sobasically if you need to code a window with many controls on it,a dialog is the best choice but if you need to write a windowstyle app and do your own autosizing, CreateWindowEx is a betterchoice.The bitmap buttons are in an example in the MASM32 example code,you have the choice of normal single bitmap buttons are a trickto do seperate UP and DOWN bbitmaps on the button. AutoIt Project Listing Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now