Skip to content

Commit

Permalink
20.3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
I-Rinka committed Mar 11, 2020
1 parent 8df0522 commit 140e8af
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 36 deletions.
28 changes: 0 additions & 28 deletions WinKeyboardLocker/KeyboardLocker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,34 +35,6 @@ LRESULT CALLBACK KbdHkProc(int, WPARAM, LPARAM);
void ShowMessage_Lock(HWND);
void ShowMessage_Unlock(HWND);

using namespace WinToastLib;

//在此规定对Toast选框行为的操作
class WinToastHandler : public IWinToastHandler {
public:
void toastActivated() const {
//click toast
exit(0);
}

void toastActivated(int actionIndex) const {
//click button
int t = actionIndex;
exit(16 + actionIndex);
}

void toastDismissed(WinToastDismissalReason state) const {
//switch state
}

void toastFailed() const {
//error
exit(5);
}
};

WinToastTemplate InitialWinToastTemlate();
WinToastTemplate Toast32;


int CALLBACK WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPSTR lpCmdLine, _In_ int nCmdShow) {
Expand Down
2 changes: 0 additions & 2 deletions WinKeyboardLocker/KeyboardLocker.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,9 @@
<ClInclude Include="Name.h" />
<ClInclude Include="Resource.h" />
<ClInclude Include="targetver.h" />
<ClInclude Include="wintoastlib.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="KeyboardLocker.cpp" />
<ClCompile Include="wintoastlib.cpp" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="KeyboardLocker.rc" />
Expand Down
6 changes: 0 additions & 6 deletions WinKeyboardLocker/KeyboardLocker.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,11 @@
<ClInclude Include="Name.h">
<Filter>头文件</Filter>
</ClInclude>
<ClInclude Include="wintoastlib.h">
<Filter>头文件</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="KeyboardLocker.cpp">
<Filter>源文件</Filter>
</ClCompile>
<ClCompile Include="wintoastlib.cpp">
<Filter>源文件</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="KeyboardLocker.rc">
Expand Down

0 comments on commit 140e8af

Please sign in to comment.