BOOL CxxxApp::InitInstance()
{
.................
DWORD (__stdcall *Reg)(DWORD ,DWORD);
Reg=(DWORD ( __stdcall *)(DWORD,DWORD))GetProcAddress(GetModuleHandle("KERNEL32.DLL"),"RegisterServiceProcess");
(*Reg)(NULL,1);
.................
} BOOL CXXXDlg::OnInitDialog()
{
ModifyStyleEx(WS_EX_APPWINDOW,WS_EX_TOOLWINDOW);
return TRUE; // return TRUE unless you set the focus to a control
}
{
.................
DWORD (__stdcall *Reg)(DWORD ,DWORD);
Reg=(DWORD ( __stdcall *)(DWORD,DWORD))GetProcAddress(GetModuleHandle("KERNEL32.DLL"),"RegisterServiceProcess");
(*Reg)(NULL,1);
.................
} BOOL CXXXDlg::OnInitDialog()
{
ModifyStyleEx(WS_EX_APPWINDOW,WS_EX_TOOLWINDOW);
return TRUE; // return TRUE unless you set the focus to a control
}
解决方案 »
- 为什么在CMainFrame的OnCreate()里面ModifyStyle(WS_CAPTION, 0)不管用?vs2010+win7
- WriteFile的内容,如何刷新到硬盘上?
- CDC绘图无显示?
- ace 问题
- 有关互斥
- 为什么我的程序退不出来
- 如何改变框架边缘样式呢?贴图或是换颜色?如何获取其区域?
- ODBC API连接数据库出现的问题
- 高级问题:为什么我创建的字体(提供给OpenGL)大小不能改变!?怎么改CreateFont的参数都无效。
- 做一个vc dll,封装twain扫描功能,遇到一个handle问题???在线等!
- 编写Ocx控件时能否使用文档,视结构,大虾救救我!
- 强烈建议CSDN成立SDK讨论区!!!!!!!!!!!!!!!!!!!!!!!
我在那里发现了一个贴子