summaryrefslogtreecommitdiff
path: root/plugins/Folders/folders/dlg_handlers.h
blob: 4f3a4f15cade4b6ff6d5a5d82d15fc0357201cea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef M_FOLDERS_DLG_HANDLERS_H
#define M_FOLDERS_DLG_HANDLERS_H

//#include "commonheaders.h"
#include "services.h"
#include "events.h"
#include <richedit.h>

INT_PTR CALLBACK DlgProcOpts(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
INT_PTR CALLBACK DlgProcVariables(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);

int GetCurrentItemSelection(HWND hWnd);
int GetCurrentSectionSelection(HWND hWnd);
PFolderItem GetSelectedItem(HWND hWnd);
int GetCurrentSectionText(HWND hWnd, WCHAR *buffer, int count);
int GetCurrentItemText(HWND hWnd, WCHAR *buffer, int count);
//void GetEditText(HWND hWnd, char *buffer, int size);
void GetEditTextW(HWND hWnd, wchar_t *buffer, int size);
//void SetEditText(HWND hWnd, const char *buffer);
void SetEditTextW(HWND hWnd, const wchar_t *buffer);
void LoadRegisteredFolderSections(HWND hWnd);
void LoadRegisteredFolderItems(HWND hWnd);
void LoadItem(HWND hWnd, PFolderItem item);
void SaveItem(HWND hWnd, PFolderItem item, int bEnableApply = TRUE);
int ChangesNotSaved(HWND hWnd);
void RefreshPreview(HWND hWnd);

#endif //M_FOLDERS_DLG_HANDLERS_H