Skip to content

Commit 3cc8a3a

Browse files
committed
Add icon to doc panel
1 parent 4afcdb0 commit 3cc8a3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

NppJSONViewer/NppJsonViewer/JsonViewDlg.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void JsonViewDlg::ShowDlg(bool bShow)
3636
if (!isCreated())
3737
{
3838
init(_hInst, _hParent);
39-
tTbData data = {0};
39+
tTbData data {};
4040
create(&data);
4141

4242
// Set Initial rect, width and Height
@@ -48,10 +48,10 @@ void JsonViewDlg::ShowDlg(bool bShow)
4848
m_lfInitialClientHeight = rc.bottom - rc.top;
4949

5050
// define the default docking behaviour
51-
data.uMask = DWS_DF_CONT_LEFT;
52-
51+
data.uMask = DWS_DF_CONT_LEFT | DWS_ICONTAB;
5352
data.pszModuleName = getPluginFileName();
5453
data.pszName = const_cast<TCHAR *>(TITLE_JSON_PANEL);
54+
data.hIconTab = static_cast<HICON>(LoadImage(_hInst, MAKEINTRESOURCE(IDI_ICON_TOOLBAR), IMAGE_ICON, 32, 32, LR_LOADMAP3DCOLORS | LR_LOADTRANSPARENT));
5555

5656
// the dlgDlg should be the index of funcItem where the current function pointer is
5757
data.dlgID = static_cast<int>(CallBackID::SHOW_DOC_PANEL);

0 commit comments

Comments
 (0)