Description:
Currently, ttlib::dlg.DoModal() calls DialogBoxParamA(). If that fails, it then calls FindResourceA() but is missing the code to actually use the result.
Since we now use ttlib::lang_info for loading strings, it would make sense to do something similar to load a language-specific version of a dialog resource. That means the DialogBoxParam method needs to go away and be replaced with calling FindResource, LockResource, DialogBoxIndirectParam -- and all done using WIDE versions of the API. Unless the user changes it, ttlib::lang_info defaults to loading from the executable using the current language. If the user calls SetLangInfo() before calling DoModal() a different source (resource dll) and/or language can be specified.
Description:
Currently, ttlib::dlg.DoModal() calls DialogBoxParamA(). If that fails, it then calls FindResourceA() but is missing the code to actually use the result.
Since we now use
ttlib::lang_infofor loading strings, it would make sense to do something similar to load a language-specific version of a dialog resource. That means the DialogBoxParam method needs to go away and be replaced with calling FindResource, LockResource, DialogBoxIndirectParam -- and all done using WIDE versions of the API. Unless the user changes it,ttlib::lang_infodefaults to loading from the executable using the current language. If the user calls SetLangInfo() before calling DoModal() a different source (resource dll) and/or language can be specified.