Menu

CreateWindow and InitCommonControls questions

2002-12-31
2012-09-26
  • Nobody/Anonymous

    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!

     
    • Nobody/Anonymous

      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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.