21 |
#ifndef WPT_W32_API_H |
#ifndef WPT_W32_API_H |
22 |
#define WPT_W32_API_H |
#define WPT_W32_API_H |
23 |
|
|
24 |
|
/* Macros to change the cursor */ |
25 |
|
#define op_begin() SetCursor (LoadCursor (NULL, IDC_WAIT)) |
26 |
|
#define op_end() SetCursor (LoadCursor (NULL, IDC_ARROW)) |
27 |
|
|
28 |
#include "wptCrypto.h" |
#include "wptCrypto.h" |
29 |
#include "wptUtil.h" |
#include "wptUtil.h" |
30 |
|
|
60 |
void center_window2 (HWND hwndChild, HWND parent, HWND style); |
void center_window2 (HWND hwndChild, HWND parent, HWND style); |
61 |
void force_foreground_window (HWND dlg, int msecs); |
void force_foreground_window (HWND dlg, int msecs); |
62 |
|
|
63 |
|
void insert_menu_item (HMENU hm, int by_pos, UINT m_id, const char *text); |
64 |
void set_menu_text (HMENU menu, UINT m_uid, const char *text); |
void set_menu_text (HMENU menu, UINT m_uid, const char *text); |
65 |
void set_menu_text_bypos (HMENU menu, UINT pos, const char *text); |
void set_menu_text_bypos (HMENU menu, UINT pos, const char *text); |
66 |
void set_menu_state (HMENU menu, UINT m_uid, UINT state); |
void set_menu_state (HMENU menu, UINT m_uid, UINT state); |
83 |
const char* get_locale_date (long tm_t, char *buf, DWORD buflen); |
const char* get_locale_date (long tm_t, char *buf, DWORD buflen); |
84 |
int get_temp_name (char *buf, DWORD buflen, const char *name); |
int get_temp_name (char *buf, DWORD buflen, const char *name); |
85 |
|
|
86 |
|
int GetDlgItemText_utf8 (HWND dlg, int id, char **r_txt); |
87 |
|
|
88 |
#define listbox_add_string(lb, string) \ |
#define listbox_add_string(lb, string) \ |
89 |
SendMessage( (lb), LB_ADDSTRING, 0, (LPARAM)(LPCSTR)(string) ) |
SendMessage( (lb), LB_ADDSTRING, 0, (LPARAM)(LPCSTR)(string) ) |
90 |
|
|