Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 04/25/26 16:09
Z9 getting Error 058
by jcl. 04/24/26 17:48
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (TipmyPip, Grant), 3,308 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
valino, juergenwue, VladMak, Geir, ondrej
19209 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
win api #206277
05/12/08 17:22
05/12/08 17:22
Joined: Apr 2008
Posts: 17
S
slowglider Offline OP
Newbie
slowglider  Offline OP
Newbie
S

Joined: Apr 2008
Posts: 17
hey i am reletavie new to gs but know the basic

i am trying to use win api but i dont seem to get it done

i just want some stuff like file->open,save,save_as,exit
if thats posible white gs

also i have a qeustion about void and func

whats the differnt between void en fuction?

Re: win api [Re: slowglider] #206279
05/12/08 17:34
05/12/08 17:34
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
yes it is possible.

and i guess you can return vars to function s.


3333333333
Re: win api [Re: Quad] #206280
05/12/08 17:36
05/12/08 17:36
Joined: Apr 2008
Posts: 17
S
slowglider Offline OP
Newbie
slowglider  Offline OP
Newbie
S

Joined: Apr 2008
Posts: 17
thx for your fast reply

gs dont let me use class how can i change that

has sombody a small exaple for what i want?

Re: win api [Re: slowglider] #206303
05/12/08 20:36
05/12/08 20:36
Joined: Apr 2008
Posts: 17
S
slowglider Offline OP
Newbie
slowglider  Offline OP
Newbie
S

Joined: Apr 2008
Posts: 17
i got now this but i dont know how to retrieve the the clicked button

function main()
{
wait(1);

HMENU menu=CreateMenu();
HMENU hSubMenu=CreateMenu();
InsertMenu(hSubMenu,0,MF_BYPOSITION|MF_STRING,1,"BEEP");
InsertMenu(hSubMenu,2,MF_SEPARATOR|MF_BYPOSITION,0,"");
InsertMenu(hSubMenu,1,MF_BYPOSITION|MF_STRING,2,"QUIT");
InsertMenu(menu,0,MF_BYPOSITION|MF_STRING|MF_POPUP,hSubMenu,"File");

SetWindowLong(hWnd,GWL_WNDPROC, WndProc);

SetWindowLong(hWnd,GWL_STYLE, WS_CAPTION+WS_SYSMENU+WS_MINIMIZEBOX+WS_MAXIMIZEBOX+WS_SIZEBOX);
SetMenu(hWnd,menu);
ShowWindow(hWnd,SW_SHOWMAXIMIZED);


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1