I add some custom control to Save As common dialog thu hooking.
in Save As dialog, all controls from the custom dialog box are positioned below the controls in the default box, but i wanna know how to position the custom controls relative to the default controls
in Save As dialog, all controls from the custom dialog box are positioned below the controls in the default box, but i wanna know how to position the custom controls relative to the default controls
doing this is not a good idea, since the file dialogs change often and you have no guarantee that your controls fit into.
One (bad) example from Quicktime software:
One (bad) example from Quicktime software:
Just disable the resizing maybe :grin:
I believe that from either WinME or Win2K onwards, you can actually specify a template for some of these common dialogs. I can't be too specific, because i have never checked it out, so if you do find some info, make sure you post it back here :)
From the M$ Platform SDK
For all common dialog boxes except the Explorer-style Open and Save As dialog boxes, you modify the default template to create a custom template that replaces the default template. The custom template defines the type and position of the standard controls as well as any additional controls.
For the Explorer-style Open and Save As dialog boxes, the default templates are not available for modification. Instead, your custom template defines a child dialog box that includes only the items to be added to the standard dialog box. The custom template can also define a static control that specifies the location of the cluster of standard controls in the child dialog box. For more information, see Explorer-Style Custom Templates.
For all common dialog boxes except the Explorer-style Open and Save As dialog boxes, you modify the default template to create a custom template that replaces the default template. The custom template defines the type and position of the standard controls as well as any additional controls.
For the Explorer-style Open and Save As dialog boxes, the default templates are not available for modification. Instead, your custom template defines a child dialog box that includes only the items to be added to the standard dialog box. The custom template can also define a static control that specifies the location of the cluster of standard controls in the child dialog box. For more information, see Explorer-Style Custom Templates.