1. 警告信息框 MessageBox(Handle,'警告信息框','警告信息框',MB_ICONWARNING);2.疑问信息框 MessageBox(Handle,'疑问信息框','疑问信息框',MB_ICONQUESTION);3.错误提示框 MessageBox(Handle,'错误信息框 ...
string path = @"C:\xxx.rfa";//模型地址 BasicFileInfo fileInfo =BasicFileInfo.Extract(path);//引入Autodesk.Revit.DB.BasicFileInfo MessageBox.Show(fileInfo.Sa... ...
分类:
其他好文 时间:
2017-06-17 10:04:34
阅读次数:
157
如果需要向用户提示try{}catch(Exception ex){ MessageBox.Show(ex.ToString());}如果需要向外层抛出try{}catch(Exception ex){ throw ex;}如果需要写日志try{}catch(Exception ex){ Loger ...
分类:
其他好文 时间:
2017-06-16 20:16:45
阅读次数:
137
对于不熟悉VB语法的童鞋们,不妨使用python来操作CRT命令行。如下代码:#$language="Python"
#$interface="1.0"
defMain():
tab=crt.GetScriptTab()
iftab.Session.Connected!=True:
crt.Dialog.MessageBox(
"Error.\n"+
"Thisscriptwasdesignedtobelaunchedafteravalid"+
"c..
分类:
编程语言 时间:
2017-06-09 10:01:34
阅读次数:
3725
#include <Windows.h> #include "resource.h" #include <stdio.h> void echo(char *str) { MessageBox(NULL, str, TEXT("提示"), MB_OK); } int CALLBACK DialogPr ...
分类:
其他好文 时间:
2017-06-04 00:16:00
阅读次数:
205
#include int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MessageBox(NULL, "Goodbye, cruel world!", "... ...
分类:
其他好文 时间:
2017-05-29 18:21:00
阅读次数:
199
Parameters 参数 Type(类型): HWND A handle to the owner window of the message box to be created. If this parameter is NULL, the message box has no owner wi ...
分类:
其他好文 时间:
2017-05-20 13:50:58
阅读次数:
211
经常使用断点 拦截窗体: bp CreateWindow 创建窗体 bp CreateWindowEx(A) 创建窗体 bp ShowWindow 显示窗体 bp UpdateWindow 更新窗体 bp GetWindowText(A) 获取窗体文本 拦截消息框: bp MessageBox(A) ...
分类:
其他好文 时间:
2017-05-19 10:02:25
阅读次数:
277
可以参照对应的API: https://msdn.microsoft.com/en-us/library/windows/desktop/ms645505(v=vs.85).aspx http://blog.csdn.net/muyeyu/article/details/50618468 ...
分类:
其他好文 时间:
2017-05-09 11:17:45
阅读次数:
117
(一)对话框控件 1.fontcolor 字体设置 属性:showcolor 可以调节字体颜色 showApply 控制显示应用按钮 例:设置一个文本框,点击按钮,文本框中的颜色字体发生改变 DialogResult dr = fontDialog1.ShowDialog(); if (dr == ...