| 23 | #include <cassert> |
| 24 | |
| 25 | static 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 | |
| 41 | namespace WinApi { |
| 42 | std::wstring get_edit_text(HWND edit) { |
nothing calls this directly
no outgoing calls
no test coverage detected