- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am in need of converting a HANDLE to a type(dialog) variable and I cannot find the definition of type (dialog). I've searched IFLOGM.f90 for type dialog and found:
type, public :: dialog
sequence
integer dlgid
integer(HANDLE) hwnd ! 0 if dialog is not displayed
!private
integer retval
logical dirty ! prevents unwanted callbacks when dlg values are changed
logical mutexflush
logical comboupdate
integer(UINT_PTR) dlginitcallback
integer NumControls
type (ControlType), pointer, dimension(:) :: list
end type
If I have a hDlg passed to a routine, how do I associate the same dialog with the type (dialog) dlg variable by setting the dlgid variable and the hwnd variable too?
Brooks V
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't really understand the question, I think you need to clarify a little.
When you call DLGINIT ( result = DLGINIT (id,dlg)) dlg is a variable of type dialog that becomes associated with the dialog resource identifier ID.
Later when you call DLGMODAL (or DLGMODELESS) with that dlg variable it will become associated with a Windows handle to the dialog. This will be stored in dlg%hwnd if you need access to it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
TYPE(DIALOG) belongs to the IFLOGM module and is meaningful only to the routines there. It isn't something you can create from a handle.
Like Andrew, I'd like to see more of what you're trying to do.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page