flat assembler
Message board for the users of flat assembler.
  
|  Index
      > Windows > Templated GetSave/OpenFileName | 
| Author | 
 | 
| typedef 28 Jun 2012, 15:24 I would just subclass the default system dialog and stretch it a bit then add the child control. | |||
|  28 Jun 2012, 15:24 | 
 | 
| bzdashek 28 Jun 2012, 20:53 Hey, typedef!
 Thanks for your answer. Can you give me any link to simple subclassing example, please? I could search myself, but I wouldn't be sure if I found the correct subclassing example. It's a good idea, but I wonder why doesn't this simple stuff work, while it should? I found an example on Visual Basic, that works (I assume by screenshots, don't have a VB compiler), and also, if you look at OllyDbg open dialog, it's clearly seen, that "Arguments" control is custom template control. It inflicts terrible butthurt. | |||
|  28 Jun 2012, 20:53 | 
 | 
| hopcode 30 Jun 2012, 03:46 GetFileName etc, are deprecated. use COM instead. an intro:
 http://weblogs.asp.net/kennykerr/archive/2006/11/10/Windows-Vista-for-Developers-_1320_-Part-6-_1320_-The-New-File-Dialogs.aspx typedef wrote: I would just subclass the default system dialog and stretch it a bit then add the child control. samples using COM http://msdn.microsoft.com/en-us/library/dd940376%28v=VS.85%29.aspx _________________ ⠓⠕⠏⠉⠕⠙⠑ | |||
|  30 Jun 2012, 03:46 | 
 | 
| bzdashek 30 Jun 2012, 07:56 hopcode
 Thanks for the links. What about the compatibility? If one needs his program to work on 2000/XP also? | |||
|  30 Jun 2012, 07:56 | 
 | 
| hopcode 30 Jun 2012, 09:56 bzdashek wrote: ...compatibility win 2000/XP ? but a versioned solution for win2000 should be ok anyway, because IFileOpenDialog is not a function. the question is who is so bold nowadays to use win2000 GUI to that customized extent ?   ok, never presume. one more social link, porting from 501 to 600 http://social.msdn.microsoft.com/Forums/pl-PL/vcgeneral/thread/7feaa636-cf22-467c-830f-7b86aa14feec Cheers, _________________ ⠓⠕⠏⠉⠕⠙⠑ | |||
|  30 Jun 2012, 09:56 | 
 | 
| bzdashek 30 Jun 2012, 19:55 hopcode wrote: 
 I see you point, hopcode  Thanks. I'll try to mess with COM interfaces, and develop a custom template for XP mode of the programme. | |||
|  30 Jun 2012, 19:55 | 
 | 
| hopcode 01 Jul 2012, 00:43 bzdashek wrote: ...mess with COM interfaces... few little hints about COM so to avoid common problems. - COM may be difficoult to debug. - by defining interfaces follow the exact order of functions as in the header .h files of the SDK - full comprehension of CoCreateInstance. - be sure to ExitProcess and Release interfaces/instances of allocated objects. - you may use IronFelix COM macros. they are good but they make the code a bit opaque (my taste, because i dont use debug informations, and i rather like to write WYSIWYG now). alternatively and simply, - declare interfaces using struc as here http://code.google.com/p/x64lab/source/browse/develop/shared/shobjidl.inc - and the macros here, http://code.google.com/p/x64lab/source/browse/develop/macro/com_macro.inc - to have such simple access to COM interfaces, example of iFileOpenDialog from http://code.google.com/p/x64lab/source/browse/develop/plugin/bk64/dialog.asm hasta la vista,  _________________ ⠓⠕⠏⠉⠕⠙⠑ | |||
|  01 Jul 2012, 00:43 | 
 | 
| bzdashek 01 Jul 2012, 10:34 hopcode wrote: 
 That's whole bunch of information, thanks a lot, hopcode! I've been actually searching for a good example on how to use IFileOpenDialog, you might have seen my thread couple of months ago, and now here it is. Thanks again. | |||
|  01 Jul 2012, 10:34 | 
 | 
| < Last Thread | Next Thread > | 
| Forum Rules: 
 | 
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.