Skip to content

Commit

Permalink
Merge pull request #12 from hatelamers/feature/10-export-app-entry-point
Browse files Browse the repository at this point in the history
#10 added program argument to hide own taskbar icon
  • Loading branch information
hatelamers authored Nov 17, 2024
2 parents 946867f + 14bb8ed commit 48201da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/app/MainFrm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,11 @@ bool CMainFrame::ParseCommandLine()
for (auto i = 1; argv && i < argc; i++)
{
CString p(argv[i]);
if (_T("/t") == p && 0 == m_strSourceTitle.GetLength())
if (_T("/h") == p)
{
SetWindowLongPtr(GWL_EXSTYLE, WS_EX_TOOLWINDOW);
}
else if (_T("/t") == p && 0 == m_strSourceTitle.GetLength())
{
expectToken = 1;
}
Expand Down
2 changes: 0 additions & 2 deletions src/app/MainFrm.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ class CMainFrame :
INT TriggerActionPopup();
POINT CalculatePopupPosision();

public:
bool m_hasChildren{ false };
private:
CMenuHandle m_mnuMain;
CShellBrowseMenu m_shellMenu;
Expand Down

0 comments on commit 48201da

Please sign in to comment.