99* *
1010**********************************************************************
1111
12- ** emWin V6.38 - Graphical user interface for embedded applications **
12+ ** emWin V6.44 - Graphical user interface for embedded applications **
1313All Intellectual Property rights in the Software belongs to SEGGER.
1414emWin is protected by international copyright laws. Knowledge of the
1515source code may not be used to write a similar product. This file may
@@ -331,7 +331,8 @@ enum {
331331 ATOM_OBJECT_GEO ,
332332 ATOM_SCREEN_GEO ,
333333 ATOM_OBJECT_PROP ,
334- ATOM_CONSTANT
334+ ATOM_CONSTANT ,
335+ ATOM_ACTIVE // WM_GetActiveWindow() is used here, Makes only sense for drawings.
335336};
336337
337338//
@@ -342,6 +343,8 @@ enum {
342343 ATOM_DETAIL_Y0 = DISPOSE_INDEX_Y0 ,
343344 ATOM_DETAIL_X1 = DISPOSE_INDEX_X1 ,
344345 ATOM_DETAIL_Y1 = DISPOSE_INDEX_Y1 ,
346+ ATOM_DETAIL_XCENTER ,
347+ ATOM_DETAIL_YCENTER ,
345348 ATOM_DETAIL_XSIZE ,
346349 ATOM_DETAIL_YSIZE
347350};
@@ -628,10 +631,11 @@ enum {
628631 /* 90 */ APPW_SET_PROP_VISIBLE3 ,
629632 /* 1 */ APPW_SET_PROP_SWITCHOFF ,
630633 /* 2 */ APPW_SET_PROP_3STATE ,
631- /* 3 */ APPW_SET_PROP_WHEELTEXT ,
632- /* 4 */ APPW_SET_PROP_WHEELBITMAPS ,
633- /* 5 */ APPW_SET_PROP_SCROLLERH ,
634- /* 6 */ APPW_SET_PROP_SCROLLERV ,
634+ /* 3 */ APPW_SET_PROP_FIXED2 ,
635+ /* 4 */ APPW_SET_PROP_WHEELTEXT ,
636+ /* 5 */ APPW_SET_PROP_WHEELBITMAPS ,
637+ /* 6 */ APPW_SET_PROP_SCROLLERH ,
638+ /* 7 */ APPW_SET_PROP_SCROLLERV ,
635639};
636640
637641//
@@ -675,38 +679,38 @@ enum {
675679//
676680// Internal macros
677681//
678- #define MANAGE_GET_DISPOSE_FUNCSETUP_JOBS (OBJECT_TYPE ) \
679- case APPW_MSG_GET_DISPOSE: \
680- pMsg->Data.p = (const void *)&((WM_##OBJECT_TYPE *)GUI_ALLOC_h2p(pMsg->hWin))->Dispose; \
681- break; \
682- case APPW_MSG_GET_TYPE: \
683- pMsg->Data.v = TYPE_##OBJECT_TYPE; \
684- break; \
685- case APPW_MSG_GET_FUNCSETUP: \
686- pMsg->Data.pFunc = (void(*)(void))_Setup; \
687- break; \
688- case APPW_MSG_GET_JOBS: \
689- pMsg->Data.p = (const void *)_aJobs; \
690- pMsg->MsgId = GUI_COUNTOF(_aJobs); \
682+ #define MANAGE_GET_DISPOSE_FUNCSETUP_JOBS (OBJECT_TYPE ) \
683+ case APPW_MSG_GET_DISPOSE: \
684+ pMsg->Data.pData = (void *)&((WM_##OBJECT_TYPE *)GUI_ALLOC_h2p(pMsg->hWin))->Dispose; \
685+ break; \
686+ case APPW_MSG_GET_TYPE: \
687+ pMsg->Data.v = TYPE_##OBJECT_TYPE; \
688+ break; \
689+ case APPW_MSG_GET_FUNCSETUP: \
690+ pMsg->Data.pFunc = (void(*)(void))_Setup; \
691+ break; \
692+ case APPW_MSG_GET_JOBS: \
693+ pMsg->Data.p = (const void *)_aJobs; \
694+ pMsg->MsgId = GUI_COUNTOF(_aJobs); \
691695 break
692696
693- #define MANAGE_GET_DISPOSE_FUNCSETUP (OBJECT_TYPE ) \
694- case APPW_MSG_GET_DISPOSE: \
695- pMsg->Data.p = (const void *)&((WM_##OBJECT_TYPE *)GUI_ALLOC_h2p(pMsg->hWin))->Dispose; \
696- break; \
697- case APPW_MSG_GET_TYPE: \
698- pMsg->Data.v = TYPE_##OBJECT_TYPE; \
699- break; \
700- case APPW_MSG_GET_FUNCSETUP: \
701- pMsg->Data.pFunc = (void(*)(void))_Setup; \
697+ #define MANAGE_GET_DISPOSE_FUNCSETUP (OBJECT_TYPE ) \
698+ case APPW_MSG_GET_DISPOSE: \
699+ pMsg->Data.pData = (void *)&((WM_##OBJECT_TYPE *)GUI_ALLOC_h2p(pMsg->hWin))->Dispose; \
700+ break; \
701+ case APPW_MSG_GET_TYPE: \
702+ pMsg->Data.v = TYPE_##OBJECT_TYPE; \
703+ break; \
704+ case APPW_MSG_GET_FUNCSETUP: \
705+ pMsg->Data.pFunc = (void(*)(void))_Setup; \
702706 break
703707
704708//
705709// Macros for drawing objects
706710//
707- #define MANAGE_PREPAINT (OBJ_CAST ) \
708- pObj = (OBJ_CAST *)GUI_LOCK_H(pMsg->hWin); { \
709- APPW_DrawingPrepare(pObj->aIdDraw); \
711+ #define MANAGE_PREPAINT (OBJ_CAST ) \
712+ pObj = (OBJ_CAST *)GUI_LOCK_H(pMsg->hWin); { \
713+ APPW_DrawingPrepare(pObj->aIdDraw, pMsg->hWin); \
710714 } GUI_UNLOCK_H(pObj)
711715
712716#define MANAGE_POSTPAINT () APPW_DrawingCleanup()
@@ -1148,8 +1152,8 @@ typedef struct {
11481152* File access
11491153*/
11501154typedef struct {
1151- GUI_GET_DATA_FUNC * pfGetDataBGJ ; // Function for getting data of (B)MP, (G)IF and (J)PEG files
1152- GUI_GET_DATA_FUNC * pfGetDataImage ; // Function for getting data of streamed bitmaps and text resource files
1155+ GUI_GET_DATA_FUNC_I * pfGetDataBGJ ; // Function for getting data of (B)MP, (G)IF and (J)PEG files
1156+ GUI_GET_DATA_FUNC_II * pfGetDataImage ; // Function for getting data of streamed bitmaps and text resource files
11531157 GUI_XBF_GET_DATA_FUNC * pfGetDataFont ; // Function for getting data of XBF fonts
11541158 U32 (* pfGetDataFile ) (void * p , U8 * pData , U32 NumBytes , U32 Off ); // Function for getting data of generic files
11551159 void * (* pfOpenFontFile ) (const char * pFilename ); // Opens a file in resource (sub)folder 'Font'
@@ -1578,6 +1582,7 @@ typedef struct {
15781582 U8 FrameRadius ;
15791583 U8 FrameSize ;
15801584 GUI_COLOR FrameColor ;
1585+ const APPW_CONTENT * pContent ;
15811586} WM_OBJECT_DROPDOWN ;
15821587
15831588/*********************************************************************
@@ -1597,6 +1602,7 @@ typedef struct {
15971602 U8 FrameSize ;
15981603 U8 FocusSize ;
15991604 U8 Flags ;
1605+ const APPW_CONTENT * pContent ;
16001606} WM_OBJECT_LISTVIEW ;
16011607
16021608/*********************************************************************
@@ -1610,6 +1616,7 @@ typedef struct {
16101616 APPW_FONT * pFont ;
16111617 GUI_COLOR FrameColor ;
16121618 U8 FrameSize ;
1619+ const APPW_CONTENT * pContent ;
16131620} WM_OBJECT_LISTBOX ;
16141621
16151622/*********************************************************************
@@ -1647,6 +1654,7 @@ typedef struct {
16471654 APPW_DRAW_OBJECT apDraw [4 ];
16481655 APPW_FONT * pFont ;
16491656 U16 Offset ;
1657+ const APPW_CONTENT * pContent ;
16501658} WM_OBJECT_RADIO ;
16511659
16521660/*********************************************************************
@@ -1845,9 +1853,10 @@ int APPW_CalcCond (const APPW_COND * pCond,
18451853//
18461854// AppWizard_Drawing.c
18471855//
1848- void APPW_DrawingPrepare (U16 * pIdDraw );
1856+ void APPW_DrawingPrepare (U16 * pIdDraw , WM_HWIN hWin );
18491857void APPW_DrawingDraw (int DrawingIndex );
18501858void APPW_DrawingCleanup (void );
1859+ WM_HWIN APPW_GetActiveWindow (void );
18511860
18521861//
18531862// AppWizard_FileAccess.c
0 commit comments