这期内容当中小编将会给大家带来有关C#中如何使用MessageBox,文章内容丰富且以专业的角度为大家分析和叙述,阅读完这篇文章希望大家可以有所收获。
C# MessageBox用法相关文章:
public MessageBoxInternal() { // // TODO: Add constructor logic here // m_cbt = new LocalCbtHook(); m_cbt.WindowCreated += newLocalCbtHook.CbtEventHandler(WndCreated); m_cbt.WindowDestroyed += new LocalCbtHook.CbtEventHandler(WndDestroyed); m_cbt.WindowActivated += new LocalCbtHook.CbtEventHandler(WndActivated); } private void WndCreated(object sender, CbtEventArgs e) { if (e.IsDialogWindow) { m_bInit = false; m_hwnd = e.Handle; } } private void WndDestroyed(object sender, CbtEventArgs e) { if (e.Handle == m_hwnd) { m_bInit = false; m_hwnd = IntPtr.Zero; //if(BST_CHECKED == (int)SendMessage( //m_hwndBtn,BM_GETCHECK,IntPtr.Zero,IntPtr.Zero)) // m_bCheck = true; } } private void WndActivated(object sender, CbtEventArgs e) ...
上述就是小编为大家分享的C#中如何使用MessageBox了,如果刚好有类似的疑惑,不妨参照上述分析进行理解。如果想知道更多相关知识,欢迎关注编程网行业资讯频道。