#include "pch.h" #include "ShortcutControl.h" #include "KeyDropDownControl.h" #include "keyboardmanager/common/KeyboardManagerState.h" #include "keyboardmanager/common/Helpers.h" #include "common/common.h" #include "keyboardmanager/dll/Generated Files/resource.h" #include extern "C" IMAGE_DOS_HEADER __ImageBase; //Both static members are initialized to null HWND ShortcutControl::EditShortcutsWindowHandle = nullptr; KeyboardManagerState* ShortcutControl::keyboardManagerState = nullptr; // Initialized as new vector RemapBuffer ShortcutControl::shortcutRemapBuffer; ShortcutControl::ShortcutControl(Grid table, const int colIndex, TextBox targetApp) { shortcutDropDownStackPanel = StackPanel(); typeShortcut = Button(); shortcutControlLayout = StackPanel(); bool isHybridControl = colIndex == 1 ? true : false; shortcutDropDownStackPanel.as().Spacing(KeyboardManagerConstants::ShortcutTableDropDownSpacing); shortcutDropDownStackPanel.as().Orientation(Windows::UI::Xaml::Controls::Orientation::Horizontal); typeShortcut.as