How can I use a resource file (*.rc) to style a dialog-based application?
I can use CreateWindow
or CreateWindowEx
to create the main window of an application. And some of the arguments of CreateWindow
or CreateWindowEx
define the styles of a dialogbox. But I want to style it using resource file (*.rc) instead of the way of by pass style arguments to function.
Could someone give me some snippets?
Someobody said I can call DialogBox
, and give second argument the the style template. Does this create a confict between CreateWindow
and the *.rc file? Or can I use both of them at the same time?