Skip to content

Commit

Permalink
Add icon to doc panel
Browse files Browse the repository at this point in the history
  • Loading branch information
SinghRajenM committed Dec 31, 2023
1 parent 4afcdb0 commit 3cc8a3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NppJSONViewer/NppJsonViewer/JsonViewDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void JsonViewDlg::ShowDlg(bool bShow)
if (!isCreated())
{
init(_hInst, _hParent);
tTbData data = {0};
tTbData data {};
create(&data);

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

// define the default docking behaviour
data.uMask = DWS_DF_CONT_LEFT;

data.uMask = DWS_DF_CONT_LEFT | DWS_ICONTAB;
data.pszModuleName = getPluginFileName();
data.pszName = const_cast<TCHAR *>(TITLE_JSON_PANEL);
data.hIconTab = static_cast<HICON>(LoadImage(_hInst, MAKEINTRESOURCE(IDI_ICON_TOOLBAR), IMAGE_ICON, 32, 32, LR_LOADMAP3DCOLORS | LR_LOADTRANSPARENT));

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

0 comments on commit 3cc8a3a

Please sign in to comment.