Ok, youll all feel like hiting me but i could not find the answer to this anywhere, so here it goes:
1)Whats is the real difference on using CreateWindow() and CreateWindowEx() ? Is CreateWindow() obsolete and we should all use CreateWindowEx()? Something like that?
2)Is it absolutely necessary to call InitCommonControls() or InitCommonControlsEx in my program? If i include commctrl.h and link -lcomctl32 isnt that enough?
Thank you!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
the only difference i know of between CreateWindow and CreateWindowEx is that CreateWindowEx allows you to use WS_EX_* window styles (parameter 1 in the function call), you can get semi-cool stuff such as "tool windows" or other odd window styles.
as for InitCommonControls, i've heard that it can cause trouble if it doesn't, and you might as well, its just one line of code, should prevent trouble :D
-Yano
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok, youll all feel like hiting me but i could not find the answer to this anywhere, so here it goes:
1)Whats is the real difference on using CreateWindow() and CreateWindowEx() ? Is CreateWindow() obsolete and we should all use CreateWindowEx()? Something like that?
2)Is it absolutely necessary to call InitCommonControls() or InitCommonControlsEx in my program? If i include commctrl.h and link -lcomctl32 isnt that enough?
Thank you!
the only difference i know of between CreateWindow and CreateWindowEx is that CreateWindowEx allows you to use WS_EX_* window styles (parameter 1 in the function call), you can get semi-cool stuff such as "tool windows" or other odd window styles.
as for InitCommonControls, i've heard that it can cause trouble if it doesn't, and you might as well, its just one line of code, should prevent trouble :D
-Yano