Skip to content

ttlib::dlg needs to support different languages and resource modules #141

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Design ChangeUnderlying design may need changing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions