-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DSPELLCHECK_GETLANGUAGELIST_MSG to get language list (#341)
- Loading branch information
Showing
2 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
#pragma once | ||
|
||
#define DSPELLCHECK_SETLANG_MSG 1 | ||
#define DSPELLCHECK_SETLANG_MSG 1 // See DSpellCheckSetLangMsgInfo | ||
#define DSPELLCHECK_GETLANGUAGELIST_MSG 2 // See DSpellCheckGetLanguageListMsgInfo | ||
|
||
struct DSpellCheckSetLangMsgInfo | ||
{ | ||
// Set language to lang_name, if was_success non-zero, it will be set to true in case of success and fales in case of failure | ||
struct DSpellCheckSetLangMsgInfo { | ||
const wchar_t *lang_name; | ||
bool *was_success; // optional out param, pointed bool set to true if language was switched | ||
}; | ||
|
||
// language_callback will be called once for each language with payload provided as a second struct element | ||
struct DSpellCheckGetLanguageListMsgInfo { | ||
void (*language_callback)(void *payload, const wchar_t *lang_name); | ||
void *payload; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters