MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / browse_callback_proc

Function browse_callback_proc

src/common/winapi.cpp:25–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#include <cassert>
24
25static int CALLBACK browse_callback_proc(HWND hwnd, UINT u_msg, LPARAM /*lParam*/, LPARAM lp_data) {
26 // If the BFFM_INITIALIZED message is received
27 // set the path to the start path.
28 switch (u_msg) {
29 case BFFM_INITIALIZED: {
30 if (NULL != lp_data) {
31 SendMessage(hwnd, BFFM_SETSELECTION, TRUE, lp_data);
32 }
33 }
34 default:
35 break;
36 }
37
38 return 0; // The function should always return 0.
39}
40
41namespace WinApi {
42std::wstring get_edit_text(HWND edit) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected