Prev: Using DIR() to read a directory.
Next: App w UC distro
From: C. Kevin Provance on 16 Feb 2010 20:38 "Karl E. Peterson" <karl(a)exmvps.org> wrote in message news:OYZ2%23r2rKHA.4304(a)TK2MSFTNGP04.phx.gbl... | C. Kevin Provance wrote: | > not even sure if a common dialog could be subclassed in process | | Oughta work just fine. It's definitely executing in the same process, | just as almost any API call would be. Yeah, you're right. I've hooked it before to center screen it. Major brain blank there. Thanks. :)
From: Karl E. Peterson on 16 Feb 2010 20:48 C. Kevin Provance wrote: > > "Karl E. Peterson" <karl(a)exmvps.org> wrote in message > news:OYZ2%23r2rKHA.4304(a)TK2MSFTNGP04.phx.gbl... >> C. Kevin Provance wrote: >>> not even sure if a common dialog could be subclassed in process >> >> Oughta work just fine. It's definitely executing in the same process, >> just as almost any API call would be. > > Yeah, you're right. I've hooked it before to center screen it. There ya go. Same idea. > Major brain blank there. Thanks. :) BTDT. :-) -- ..NET: It's About Trust! http://vfred.mvps.org
From: Bee on 16 Feb 2010 20:50 I have seen where I can get the position of an open window. Then I can dock my form based on that. I gues a timer can track it. Maybe easier that monitoring messages. I am adding a sliver beneath the color dialog to allow direct selection of web safe colors. i.e. named colors. All I need to do is close the other window if the user selects OK or cancel on either window. My form can use withevents to register the selection from that window. If none, then the COlor Dialog value will be used. Make sense? Innovate. "Bee" wrote: > I am using the API to open the color dialog. > I would like to also open my own color dialog along side. > > (1) how can I lock the two together so if I move one, the other follows? > or at least initially have them side by side or mine underneath? > > (2) how do I communicate from my dialog to the API common dialog. > (a) to Close both from my dialog - i.e. send a cancel to the API if the > user chooses my selection. > (b)to put the selection from my dialog into the API Dialog custom colors? >
From: Karl E. Peterson on 16 Feb 2010 21:23 Bee wrote: > Make sense? Does a dog chasing his tail make sense? -- ..NET: It's About Trust! http://vfred.mvps.org
From: Nobody on 17 Feb 2010 10:54
"Bee" <Bee(a)discussions.microsoft.com> wrote in message news:A15776B9-3488-4B93-86BA-C57171F015B2(a)microsoft.com... >I am using the API to open the color dialog. > I would like to also open my own color dialog along side. There is no simple solution that would look professional, or flicker-free. What you want to do, if I understand correctly, is mimic those who customize some dialogs, such as adding a print preview window to the Print dialog. To do that, subclassing or hooking is required, and a lot of code. Try searching the web or groups for "vb WM_INITDIALOG color dialog". |