Select one of the symbols to view example projects that use it.
 
Outline
#define CHOOSEFILE_H
#include "WM.h"
#define CHOOSEFILE_FINDFIRST
#define CHOOSEFILE_FINDNEXT
#define CHOOSEFILE_FLAG_DIRECTORY
#define CHOOSEFILE_MAXLEN
#define CHOOSEFILE_BI_CANCEL
#define CHOOSEFILE_BI_OK
#define CHOOSEFILE_BI_UP
CHOOSEFILE_INFO
CHOOSEFILE_INFO
CHOOSEFILE_Create(GUI_HWIN, int, int, int, int, const char **, int, int, const char *, int, CHOOSEFILE_INFO *);
CHOOSEFILE_Callback(WM_MESSAGE *);
CHOOSEFILE_EnableToolTips();
CHOOSEFILE_SetButtonText(GUI_HWIN, unsigned int, const char *);
CHOOSEFILE_SetDefaultButtonText(unsigned int, const char *);
CHOOSEFILE_SetDelim(char);
CHOOSEFILE_SetToolTips(const TOOLTIP_INFO *, int);
CHOOSEFILE_SetTopMode(unsigned int);
Files
loading...
CodeScopeSTM32 Libraries and SamplesSTemWininc/CHOOSEFILE.h
 
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/********************************************************************* * SEGGER Microcontroller GmbH & Co. KG * * Solutions for real time microcontroller applications * ********************************************************************** * * * (c) 1996 - 2017 SEGGER Microcontroller GmbH & Co. KG * * * * Internet: www.segger.com Support: support@segger.com * * * ********************************************************************** ** emWin V5.44 - Graphical user interface for embedded applications ** All Intellectual Property rights in the Software belongs to SEGGER. emWin is protected by international copyright laws. Knowledge of the source code may not be used to write a similar product. This file may only be used in accordance with the following terms: The software has been licensed to STMicroelectronics International N.V. a Dutch company with a Swiss branch and its headquarters in Plan- les-Ouates, Geneva, 39 Chemin du Champ des Filles, Switzerland for the purposes of creating libraries for ARM Cortex-M-based 32-bit microcon_ troller products commercialized by Licensee only, sublicensed and dis_ tributed under the terms and conditions of the End User License Agree_ ment supplied by STMicroelectronics International N.V. Full source code is available at: www.segger.com We appreciate your understanding and fairness. ---------------------------------------------------------------------- ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) 2018 STMicroelectronics. * All rights reserved.</center></h2> * * This software component is licensed by ST under Ultimate Liberty license SLA0044, * the "License"; You may not use this file except in compliance with the License. * You may obtain a copy of the License at: * http://www.st.com/SLA0044 * ****************************************************************************** ---------------------------------------------------------------------- File : CHOOSEFILE.h Purpose : File dialog interface --------------------END-OF-HEADER------------------------------------- *//* ... */ #ifndef CHOOSEFILE_H #define CHOOSEFILE_H #include "WM.h" #if GUI_WINSUPPORT #if defined(__cplusplus) extern "C" { /* Make sure we have C-declarations in C++ programs */ #endif /********************************************************************* * * Defines * ********************************************************************** *//* ... */ #define CHOOSEFILE_FINDFIRST 0 #define CHOOSEFILE_FINDNEXT 1 #define CHOOSEFILE_FLAG_DIRECTORY (1 << 0) #ifndef CHOOSEFILE_MAXLEN #define CHOOSEFILE_MAXLEN 256 #endif #define CHOOSEFILE_BI_CANCEL 0 #define CHOOSEFILE_BI_OK 1 #define CHOOSEFILE_BI_UP 2 /********************************************************************* * * Types * ********************************************************************** *//* ... */ /********************************************************************* * * CHOOSEFILE_INFO *//* ... */ typedef struct CHOOSEFILE_INFO CHOOSEFILE_INFO; struct CHOOSEFILE_INFO { int Cmd; // Command for GetData() function int Id; // Id of pressed button (for internal use only) const char * pMask; // Mask to be used for searching files char * pName; // (for internal use only) char * pExt; // (for internal use only) char * pAttrib; // (for internal use only) WM_TOOLTIP_HANDLE hToolTip; // (for internal use only) U32 SizeL; // FileSize low word U32 SizeH; // FileSize high word U32 Flags; // File flags char pRoot[CHOOSEFILE_MAXLEN]; // Buffer used internally and for passing result int (* pfGetData)(CHOOSEFILE_INFO * pInfo); // Pointer to GetData() function ...}; /********************************************************************* * * Functions * ********************************************************************** *//* ... */ WM_HWIN CHOOSEFILE_Create(WM_HWIN hParent, // Parent window int xPos, // xPosition in window coordinates int yPos, // yPosition in window coordinates int xSize, // xSize in pixels int ySize, // ySize in pixels const char * apRoot[], // Pointers to root strings int NumRoot, // Number of roots int SelRoot, // Root to be selected at first const char * sCaption, // Shown in title bar int Flags, // Flags for FRAMEWINDOW CHOOSEFILE_INFO * pInfo // Pointer to CHOOSEFILE_INFO structure ); void CHOOSEFILE_Callback (WM_MESSAGE * pMsg); void CHOOSEFILE_EnableToolTips (void); void CHOOSEFILE_SetButtonText (WM_HWIN hWin, unsigned ButtonIndex, const char * pText); void CHOOSEFILE_SetDefaultButtonText(unsigned ButtonIndex, const char * pText); void CHOOSEFILE_SetDelim (char Delim); void CHOOSEFILE_SetToolTips (const TOOLTIP_INFO * pInfo, int NumItems); void CHOOSEFILE_SetTopMode (unsigned OnOff); #if defined(__cplusplus) }extern "C" { ... } #endif /* ... */ #endif /* GUI_WINSUPPORT */ /* ... */ #endif /* CHOOSEFILE_H */ /*************************** End of file ****************************/