Dear Lance and Dave,
Is it correct to program this way using winmain
DefLng L, H
%TextBox = 101
Function Winmain (....) Export as Long
Dialog New 0, "Win Main", , , 100, 100, %WS_SYSMENU TO HDialog
Control Add TextBox, HDialog, %TextBox, "", 10, 10,
Dialog Show Modal HDialog, Call CallBackProc to LResult
End Function
CallBack Function CallBackProc()
End Function
or should I use only API calls in winmain. I am using API calls which require hInstance and PBMAIN is not able to get the hInstance.
-------------
Anand Kumar
Is it correct to program this way using winmain
DefLng L, H
%TextBox = 101
Function Winmain (....) Export as Long
Dialog New 0, "Win Main", , , 100, 100, %WS_SYSMENU TO HDialog
Control Add TextBox, HDialog, %TextBox, "", 10, 10,
Dialog Show Modal HDialog, Call CallBackProc to LResult
End Function
CallBack Function CallBackProc()
End Function
or should I use only API calls in winmain. I am using API calls which require hInstance and PBMAIN is not able to get the hInstance.
-------------
Anand Kumar
Comment