- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would be very appreciative of a worked example of implementing a month-calendar control dialog in CVF6.5...
TIA
Paul Curtis, pcurtis@kiltel.com
TIA
Paul Curtis, pcurtis@kiltel.com
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, it looks as if the answer is "no one did it". All I can offer are few guidelines and remarks (since I did similar stuff but with another controls).
1) Read MSDN chapter. It contains even some samples in C. That would give you an idea how to do it.
2) If you want it to be in a dialog, forget about DFLOGM. You'll have to use Win32-driven dialog, which is not very hard, but if you're not familiar with it... I believe there are samples for Win32 dialog-based applications in DFSAMPLES.
3) In dialog procedure, you'll have to process WM_NOTIFY/MCN_SELCHANGE & possibly couple of other messages... I didn't dig deeply into docs.
4) In order to be able to do 3), messages & constants have to be defined somewhere. DFWIN & rest are not always up-to-date with current MSDN SDK.
Do a "Find in files" in C:Program Files...DFInclude to see whether, say, MCM_SETCURSEL is defined anywhere. If yes, fine -- if not, you'll also need translated C->Fortran file. I might help here, but please let me know so that I don't reinvent the wheel (I don't have 6.5 so couldn't tell immediately).
I know it wasn't very encouraging, but...
Regards
Jugoslav
1) Read MSDN chapter. It contains even some samples in C. That would give you an idea how to do it.
2) If you want it to be in a dialog, forget about DFLOGM. You'll have to use Win32-driven dialog, which is not very hard, but if you're not familiar with it... I believe there are samples for Win32 dialog-based applications in DFSAMPLES.
3) In dialog procedure, you'll have to process WM_NOTIFY/MCN_SELCHANGE & possibly couple of other messages... I didn't dig deeply into docs.
4) In order to be able to do 3), messages & constants have to be defined somewhere. DFWIN & rest are not always up-to-date with current MSDN SDK.
Do a "Find in files" in C:Program Files...DFInclude to see whether, say, MCM_SETCURSEL is defined anywhere. If yes, fine -- if not, you'll also need translated C->Fortran file. I might help here, but please let me know so that I don't reinvent the wheel (I don't have 6.5 so couldn't tell immediately).
I know it wasn't very encouraging, but...
Regards
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jugoslav -- Thx for the reply. CVF6.5 has vastly improved and enlarged Win32 types (DFWINTY), includes all the MCM_* parameters and so forth for this control. I use only Win32API in regular programs, not Quickwin.
![](/skins/images/7FDC486457F5FB4D87FED5D8C92AC987/responsive_peak/images/icon_anonymous_message.png)
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