Skip to content

Commit

Permalink
Wrapping up, improving the context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
h4zm1 committed Sep 3, 2021
1 parent 8f7e26c commit 62ab6a3
Show file tree
Hide file tree
Showing 10 changed files with 174 additions and 123 deletions.
16 changes: 8 additions & 8 deletions SimplePG.sln
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31205.134
VisualStudioVersion = 16.0.31515.178
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SimplePG", "SimplePG\SimplePG.vcxproj", "{E890D0E1-71C8-4730-A1D3-5D312F9B4D99}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SimplePG", "SimplePG\SimplePG.vcxproj", "{002E365F-F551-4154-B372-A5339BB1DBCD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E890D0E1-71C8-4730-A1D3-5D312F9B4D99}.Debug|x64.ActiveCfg = Debug|x64
{E890D0E1-71C8-4730-A1D3-5D312F9B4D99}.Debug|x64.Build.0 = Debug|x64
{E890D0E1-71C8-4730-A1D3-5D312F9B4D99}.Debug|x86.ActiveCfg = Debug|Win32
{E890D0E1-71C8-4730-A1D3-5D312F9B4D99}.Debug|x86.Build.0 = Debug|Win32
{002E365F-F551-4154-B372-A5339BB1DBCD}.Debug|x64.ActiveCfg = Release|x64
{002E365F-F551-4154-B372-A5339BB1DBCD}.Debug|x64.Build.0 = Release|x64
{002E365F-F551-4154-B372-A5339BB1DBCD}.Release|x64.ActiveCfg = Release|x64
{002E365F-F551-4154-B372-A5339BB1DBCD}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {A12486D3-ECFE-4EA0-91D9-AFED92052EBF}
SolutionGuid = {8D6620C4-DEDC-4D1A-BF95-2C155F78B383}
EndGlobalSection
EndGlobal
12 changes: 7 additions & 5 deletions SimplePG/NewEventFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ NewEventFilter::~NewEventFilter()
{
}

bool NewEventFilter::nativeEventFilter(const QByteArray& eventType, void* message, long* result)
///almost there >>
bool NewEventFilter::nativeEventFilter(const QByteArray &eventType, void *message, long *result)
{
//QString et = QString(eventType);
if (eventType.toStdString() == "windows_generic_MSG") {
res = (long*)WndProc(((MSG*)message)->hwnd, ((MSG*)message)->message, ((MSG*)message)->wParam, ((MSG*)message)->lParam);
auto et = QString(eventType);
if (eventType.toStdString() == "windows_generic_MSG")
{
///>> SimplePG.h
res = (long *)WndProc(static_cast<MSG *>(message)->hwnd, static_cast<MSG *>(message)->message, static_cast<MSG *>(message)->wParam, static_cast<MSG *>(message)->lParam);
}
//qDebug("nativeFilter");
return false;
}
7 changes: 4 additions & 3 deletions SimplePG/NewEventFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ class NewEventFilter : public QAbstractNativeEventFilter
{
public:
NewEventFilter();
~NewEventFilter();
long* res;
~NewEventFilter() override;
long *res;

bool nativeEventFilter(const QByteArray& eventType, void* message, long* result) override;
///the quest continue >> .cpp
bool nativeEventFilter(const QByteArray &eventType, void *message, long *result) override;
};
Binary file added SimplePG/Preview/preview.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 62ab6a3

Please sign in to comment.