USER32.DLLUSER32이 ShowWindow .NET
public partial class Form1 : Form
{
TheForm theForm;//empty form
public Form1()
{
InitializeComponent();
theForm = new TheForm();
}
internal const int SWP_SHOWWINDOW = 0x0040;
[DllImport("user32.dll", CharSet = CharSet.Auto)]
internal static extern int ShowWindow(IntPtr hWnd, short cmdShow);
private void button1_Click(object sender, EventArgs e)//shows theForm when it wants to
{
ShowWindow(theForm.Handle, SWP_SHOWWINDOW);
}
private void button2_Click(object sender, EventArgs e)//shows theForm always
{
theForm.Show();
}
}
왜 전화 USER32의이 ShowWindow 후, 시간 윈도우의 대부분은 "저승에 갇혀"를 사용하는 타사 컨트롤을 고정? 포커스를 잃어 버리고 캡처하지만 마우스 이벤트를 캡처하지 않으며 자체적으로 페인트하지 않습니다.
신의 초록 지구에서 당신은 무엇을하려고합니까? – siride
타사 구성 요소를 수정하려고 시도하는 이유는 ... –