- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is probably really simple, and I'm not seeing it...
I'm working on a dialog box and have it setup with multiple radio buttons. When a radio button is clicked, the filename (represented by a textbox) is updated.
I am trying to setup the subroutine to update the filename/textbox. I have the watches for the radio buttons setup:
Code:
And I have the main outline of the subroutine created:
case (IDC_Radio_Composite)
if (HIWORD(uParam) == BN_CLICKED) then
call UpdateFileName (hDlg)
endif
SetupDlgProc = 1
case (IDC_Radio_DailyMSG)
if (HIWORD(uParam) == BN_CLICKED) then
call UpdateFileName (hDlg)
endif
SetupDlgProc = 1
.
.
.
And I have the main outline of the subroutine created:
Code:
When I compile the code, the compiler comes back and tells me that IDC_Edit_Filename needs to have a type defined. What gives? If I pass the handle for the dialog box to the subroutine, shouldn't the subroutine be able to make calls to any object on that dialog box (in this case the textbox)?
SUBROUTINE UpdateFilename(hDlg)
use ifwin
use iflogm
use MS3_Globals
implicit none
integer hDlg
integer id
integer callbacktype
mode_txt = 'dmsg'C
iret = SetDlgItemText (hDlg, IDC_Edit_Filename, &
trim(adjustl(mode_txt))//' 'C)
END SUBROUTINE UpdateFilenameWhen I compile the code, the compiler comes back and tells me that IDC_Edit_Filename needs to have a type defined. What gives? If I pass the handle for the dialog box to the subroutine, shouldn't the subroutine be able to make calls to any object on that dialog box (in this case the textbox)?
Chad
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need to include the generated resource .fd file that defines all of the IDC_ values.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page