Skip to content

Commit fa7f855

Browse files
donhogithub-actions[bot]
authored andcommitted
1 parent e2c6de2 commit fa7f855

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/DockingFeature/Docking.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
#define DWS_DF_FLOATING 0x80000000 // default state is floating
4848

4949

50-
struct DockedWidgetData { // DockedWidget data (old name: tTbData)
50+
typedef struct DockedWidgetData { // DockedWidget data (old name: tTbData)
5151
HWND hClient = nullptr; // client Window Handle
5252
const wchar_t* pszName = nullptr; // name of plugin (shown in window)
5353
int dlgID = 0; // a funcItem provides the function pointer to start a dialog. Please parse here these ID
@@ -61,7 +61,7 @@ struct DockedWidgetData { // DockedWidget data (old name: tTb
6161
RECT rcFloat = {}; // floating position
6262
int iPrevCont = 0; // stores the privious container (toggling between float and dock)
6363
const wchar_t* pszModuleName = nullptr; // it's the plugin file name. It's used to identify the plugin
64-
};
64+
} DockedWidgetData, tTbData;
6565

6666

6767
struct tDockMgr {

src/Notepad_plus_msgs.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,10 @@ enum Platform { PF_UNKNOWN, PF_X86, PF_X64, PF_IA64, PF_ARM64 };
261261
// Return TRUE
262262

263263
#define NPPM_DMMREGASDCKDLG (NPPMSG + 33)
264-
// BOOL NPPM_DMMREGASDCKDLG(0, tTbData* pData)
264+
// BOOL NPPM_DMMREGASDCKDLG(0, DockedWidgetData* pData)
265265
// Pass the necessary dockingData to Notepad++ in order to make your dialog dockable.
266266
// wParam: 0 (not used)
267-
// lParam[in]: pData is the pointer of tTbData. Please check tTbData structure in "Docking.h"
267+
// lParam[in]: pData is the pointer of DockedWidgetData (old name "tTbData"). Please check DockedWidgetData structure in "Docking.h"
268268
// Minimum information which needs to be filled out are hClient, pszName, dlgID, uMask and pszModuleName.
269269
// Notice that rcFloat and iPrevCont shouldn't be filled. They are used internally.
270270
// Return TRUE
@@ -280,7 +280,7 @@ enum Platform { PF_UNKNOWN, PF_X86, PF_X64, PF_IA64, PF_ARM64 };
280280
// BOOL WM_DMM_VIEWOTHERTAB(0, wchar_t* name)
281281
// Show the plugin dialog (switch to plugin tab) with the given name.
282282
// wParam: 0 (not used)
283-
// lParam[in]: name should be the same value as previously used to register the dialog (pszName of tTbData)
283+
// lParam[in]: name should be the same value as previously used to register the dialog (pszName of DockedWidgetData)
284284
// Return TRUE
285285

286286
#define NPPM_RELOADFILE (NPPMSG + 36)

0 commit comments

Comments
 (0)