Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Understanding Win32 API

marshallc
Beginner
4,220 Views
Hi,
I'm trying to get a better understanding of Win32 API. I'm working on a dialog box that has several controls on it. One of these is a group of radio buttons. I've noticed that there are a couple of ways to select a radio button and deselect the others. The Win32 API CheckRadioButton is able to do this, but I'm not understanding the function syntax enough to be able to include it in my code:
Code:
BOOL CheckRadioButton(HWND hDlg,
    int nIDFirstButton,
    int nIDLastButton,
    int nIDCheckButton
);
Does anyone have an example of how this is used in code or could provide some insight on how this is read? I understand the first parameter of the function requires the handle of the dialog box, but I'm not sure how to retrieve the ID of the radio buttons.
Chad
0 Kudos
21 Replies
Steven_L_Intel1
Employee
552 Views
To elaborate on Jugoslav's response.

QuickWin is a special project type that has you structure your application as a normal console application (with a Fortran main program.) Rather than just a regular console, it runs your program in a window with a standard Windows look, complete with toolbar, cut/paste/print, etc. Your "console" input and output appears in a scrolling window. You can open multiple windows within the main window using other I/O units. You can add menu items and do graphics through library routine calls that are Fortran-friendly.

QuickWin is an easy way to take an existing Fortran application and give it a Windows look-and-feel. It does not have all Win32 features built in, and cannot be used in a DLL or static library project.

DFLOGM/IFLOGM is a Fortran-friendly interface for adding dialog boxes to any project type. It can be used with or without QuickWin.
0 Kudos
Reply