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?
Posted By: Quad
Re: win api - 05/12/08 17:34
yes it is possible.
and i guess you can return vars to function s.
Posted By: slowglider
Re: win api - 05/12/08 17:36
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?
Posted By: slowglider
Re: win api - 05/12/08 20:36
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);