Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Insert buttons into a window's caption area
#21
Hi Gintaras,
Should have studied this part of forum a long time ago.
I "hang" dialogs a lot from various other application windows - they act like extra toolbars containing all sorts of controls - buttons, LBs, CBs, ActiveX WebBrowser controls, etc.
I use dialogs because toolbars can't be used in exe's.
Above you wrote:

Quote:Gintaras wrote:
something similar
i would not use dialogs
warning: to make it to work well, especially on vista, you'll spend several months
better use qm toolbars


I have been using this with a dialog because I do not understand how to use CreateWindowEx. This makes my program choppy when I move my main dialog. My guess is the CreateWindowEx would create a popup but this never seams to work. Can you please give me an example using CreateWindowEx for a button instead of a dialog?

And you gave WndProc_xclass example where it says:

Quote:This is window procedure of windows of "xclass" class. It is similar to dialog procedure. Read about window procedures in MSDN library.
;WM_CREATE, WM_DESTROY and other messages are documented in MSDN library.

sel message
,case WM_CREATE
,ShowWindow hWnd SW_SHOWNOACTIVATE
,;here you can create controls (CreateControl), load graphics, etc


My question is why is this better than creating dlg? In QM environment you have dialog editor so can use that to layout "application" as dialog window. In your example, it seems like would have to be manual coding effort to do this. Am I missing something fundamental?
If so, could you give simple example with a few button elements.
Thanks for any insight.
S


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)