디자이너 비활성 핫키 업뎃후 미작동
페이지 정보
본문
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);
}
딜 임포트해서 사용중이었는데 패치하고 먹질 않습니당..
- 이전글Windows Server2012에 에디터 설치시 도구 이미지가 출력이 안됩니다.. 20.06.30
- 다음글커스텀 GetHandles 오류 20.06.24