在DElphi中如何获得SDK中的绝对控制权限吗!

Robin 2003-01-24 12:28:25
如题!
最好给个在DElphi中生成这种窗体的例子!
分数可以无限升级!
...全文
63 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
Robin 2003-01-27
  • 打赏
  • 举报
回复
SDK!
才可以获得最高的控制权利!
ehom 2003-01-26
  • 打赏
  • 举报
回复
怎么没用?如果是开发游戏,用VCL反倒是累赘!
Robin 2003-01-26
  • 打赏
  • 举报
回复
先谢谢几位了!
ly_liuyang 2003-01-25
  • 打赏
  • 举报
回复
不用VCL,效率很低的,根本不能开发稍微大一些的项目
LKylix 2003-01-24
  • 打赏
  • 举报
回复
那就不要用VCL啦,只用Object Pascal,注册窗口类,处理消息循环~~~~~~~学习还可以,实际上可能没人这么做吧。
Billy_Chen28 2003-01-24
  • 打赏
  • 举报
回复
//首先打开DELPHI5
//点击FILI->NEW->CONSOLE APPLICATION
//删除所有系统生成的程序代码
//COPY以下代码到程序:

program first;

uses Windows,Messages;

function AppWindowProc(
hWnd:HWND;
uMsg:UINT;
wParam:WPARAM;
lParam:LPARAM):LRESULT; stdcall;
begin
Result := 0;
case uMsg of
WM_DESTROY:
begin
PostQuitMessage(0);
Exit;
end;
WM_LBUTTONDOWN:
MessageBox(hwnd, '你已经触发了一个消息,恭喜你!','Billy.Chen的测试',MB_ICONINFORMATION);
end;
Result:=DefWindowProc(hWnd, uMsg, wParam, lParam);
end;

var
wcfirst: TWndClass;
hWnd: Integer;
MSG: TMsg;
begin
wcfirst.style := CS_VREDRAW or CS_HREDRAW;
wcfirst.lpfnWndProc := @AppWindowProc;
wcfirst.cbClsExtra := 0;
wcfirst.cbWndExtra := 0;
wcfirst.hInstance := HInstance;
wcfirst.hIcon := LoadIcon(0, IDI_APPLICATION);
wcfirst.hCursor := LoadCursor(0, IDC_ARROW);
wcfirst.hbrBackground := (COLOR_BTNFACE+1);
wcfirst.lpszMenuName := nil;
wcfirst.lpszClassName := 'MyTest';
if RegisterClass(wcfirst)=0 then Exit;
hWnd := CreateWindow(
wcfirst.lpszClassName,
'Billy.Chen的SDK/API测试!',
WS_OVERLAPPEDWINDOW,
Integer(CW_USEDEFAULT),
Integer(CW_USEDEFAULT),
Integer(CW_USEDEFAULT),
Integer(CW_USEDEFAULT),
0,
0,
HInstance,
nil);
if hWnd=0 then Exit;
ShowWindow(hWnd, SW_SHOWNORMAL);
while GetMessage(MSG, 0, 0, 0) do
begin
TranslateMessage(MSG);
DispatchMessage(MSG);
end;
end.

1,184

社区成员

发帖
与我相关
我的任务
社区描述
Delphi Windows SDK/API
社区管理员
  • Windows SDK/API社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧