디자이너 비활성 핫키 업뎃후 미작동
페이지 정보
본문
using System.Runtime.InteropServices;
[DllImport("user32.dll")]
private static extern int RegisterHotKey(int hWnd, int id, int fsModifiers, int vk);
[DllImport("user32.dll")]
private static extern int UnRegisterHotKey(int hWnd, int id);
protected override void WndProc(ref Message m)
{
if (m.Msg == (int)0x312)
{
if(m.WParam == (IntPtr)0x1)
{
}
}
base.WndProc(ref m);
}
private void Form1_Load(object sender, EventArgs e)
{
RegisterHotKey((int)this.Handle, 1, 0x1, (int)Keys.);
}
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
UnRegisterHotKey((int)this.Handle, 1);
}
딜 임포트해서 사용중이었는데 패치하고 먹질 않습니당..
- 이전글디자이너 시리얼포트 질문입니다. 20.07.30
- 다음글체크시 메시지 박스 출력 20.06.09