How do you read a dialog template resource programmatically?
-
I would like to be able to read a dialog template resource at compile time, for example I want to make sure before the program calls
myDlg.Create(129/*IDD_DIALOG1*/, this)
: 1) Is129
a valid dialog template resource ID? 2) If yes, does the dialog associated with that template haveWS_CHILD
andWS_CAPTION
style flags set? Thank you. -
I would like to be able to read a dialog template resource at compile time, for example I want to make sure before the program calls
myDlg.Create(129/*IDD_DIALOG1*/, this)
: 1) Is129
a valid dialog template resource ID? 2) If yes, does the dialog associated with that template haveWS_CHILD
andWS_CAPTION
style flags set? Thank you.Check out the
_DialogSplitHelper
class in atlhost.h, it has code for parsing the resource. --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ---- #include "witty-quote.h" -
I would like to be able to read a dialog template resource at compile time, for example I want to make sure before the program calls
myDlg.Create(129/*IDD_DIALOG1*/, this)
: 1) Is129
a valid dialog template resource ID? 2) If yes, does the dialog associated with that template haveWS_CHILD
andWS_CAPTION
style flags set? Thank you.FindResource()
should do what you want. Also, check outEnumResourceNames()
andEnumResourceTypes()
.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)