#include "HotkeyInput.h"

#include "../../3RVX/Logger.h"
#include "../Controls/Controls.h"
#include "KeyGrabber.h"

HotkeyInput::HotkeyInput(HWND parent) :
Dialog(parent, MAKEINTRESOURCE(IDD_HOTKEYPROMPT)) {

}

void HotkeyInput::Initialize() {
    _prompt = new Label(LBL_PROMPT, *this);
}

#include "HotkeyInput.h"

#include "../../3RVX/Logger.h"
#include "../Controls/Controls.h"
#include "KeyGrabber.h"

HotkeyInput::HotkeyInput(HWND parent) :
Dialog(parent, MAKEINTRESOURCE(IDD_HOTKEYPROMPT)) {

}

void HotkeyInput::Initialize() {
    _prompt = new Label(LBL_PROMPT, *this);
    KeyGrabber::Instance()->SetHwnd(DialogHandle());
    KeyGrabber::Instance()->Grab();
}

Set the dest hwnd and start grabbing keys during init
Set the dest hwnd and start grabbing keys during init
