|
Is there anybody knowns where was IE's "Manage Add-ons" dialog implemented?
I can't find it in shdocvw.dll,shlwapi.dll,iexplorer.exe........
where is it?
|
|
|
|
|
Hi all,
In one of my applications, the user gets a modal dialog box, in which he enters some information. In order to support him in diong that, I also display a modeless dialog with some additional information. (CDialog::Create (IDD_TEMPLATE, NULL)). The order is: first initialize the modeless dialog, then call the DoModal for the modal dialog. However, the user is now not able to move or resize the modeless dialog or to put it on top of the modal dialog to diaplsy all the information, until the modal dialog closes.
It would of course be possible to also use a modeless dialog for the second dialog box, but then I need to loop for the user to push the OK (or Cancel) button, and I would possible need to do a whole lot of other things that Windows is now handeling for me.
How can I create the modeless dialog so that it will act as if it were another application (in the sense that I can move it, put it on top of others, etc)
Anyone any suggestions please?
Thanks in advance,
William
|
|
|
|
|
Create the modeless dialog within the modal dialog's OnInitDialog() method.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Thanks, I'll try that.
Regards,
WIlliam
|
|
|
|
|
I add some Strings in a ListBox. Now I want change the Color of some Letters in the ListBox. It is possible? Can someone help me? Thanks
|
|
|
|
|
|
the hole String in one Line to make in a different color is no problem.
I want to insert something like: "S 04 A....X" in my Listbox
and S should be green A should be Red and X should be Yellow, the rest should be Black.
Thx
|
|
|
|
|
There is no builtin functionality that does that. You will need to make an ownerdraw list box. drax_0815 gave an example how to do that.
John
|
|
|
|
|
Do you want to set color for each character?
|
|
|
|
|
|
I dont know why you want to use it anyway its possible but you need to a little work:
1-you need to derived CListBox and declare WM_DRAWITEM on it (if you dont know how to use it you can see previous links)
2- On WM_DRAWIEM when you want to write items with TextOut or DrawText you must declare a loop
for each item for example you have three items on your listbox "one" "two" "three"
you get your string and when you want to show these items you need to a loop like this
for(int i=0;i<m_Str.GetLength();i++)
{<br />
SetTextColor(RGB(0,0,120));
pDC->TextOut(you need to calculate x,you need to calculate y, m_str[i]); <br />
<br />
}<br />
|
|
|
|
|
All I can say is, that you have to set your listbox to ownerdraw.
(fixed) if all listbox items have the same height an width.
Then you have to handle inside the message loop the MeasureItem and the WM_DRAWITEM
messages:
<br />
case WM_MEASUREITEM: <br />
<br />
lpmis = (LPMEASUREITEMSTRUCT) lParam; <br />
<br />
lpmis->itemHeight = 18; <br />
return TRUE; <br />
<br />
case WM_DRAWITEM: <br />
In the WM_DRAWITEM case you have to implement the tricky part (adding the text in different colors)
May a little help for google search.
|
|
|
|
|
I have developed a solution that has Help files and about 12 dialogs. The application is a MFC C++ 2005 Net based program.
Now I want to copy this and modify it for a new similar application. The original is not generic enough at present.
My question is (each time I have done this before, its been a fight to get all the name references corect). I would like all the main files (.cpp and .h) to take the name of the new application; e.g. Current solution is called ABC_123 and would like the new application to be QWERTY_123. The classes and other files are OK; its just the Main. I can change the diaglog titles etc, but also the Help needs to change?
How or what is the best way to rename the items in this solution?
Cheers,
Andy.
|
|
|
|
|
Is this[^] helpful for you
|
|
|
|
|
I have a audio file. I wanto to add a wave format header to it.
How can i do this? Please help.
Thnak you
KIRAN PINJARLA
|
|
|
|
|
I saw an article for this purpose on codeproject but its C#
|
|
|
|
|
I want to display a Message box to the user for some time only without waiting for its reponse i wish to move ahead
How to achieve this . Please help me out
|
|
|
|
|
anjita wrote: Message box to the user for some time only without waiting for its reponse
See here for some help on timed message box.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
anjita wrote: I want to display a Message box to the user for some time only without waiting for its reponse i wish to move ahead
In addition to what has already been suggested, I have always liked the look of Balloon help, Esp. for informational stuff. See Balloon Help as a non-modal replacement for MessageBox()[^]
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
I have a a window and a button enclosed in it. The button is resized to fit to the window size initially. My problem is if i resize the window, the size of the button also shud resize so as to fit the parent rect. Is it possible?
|
|
|
|
|
The following two articles will be helpful to you.
http://www.codeproject.com/useritems/SizingDialog.asp
http://www.codeproject.com/dialog/easysize.asp
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
Sure - catch the event when your window resizes, and call SetWindowPos on the button. The last parameter you want in SWP_NOZORDER, as you don't want to change that.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
See Here[^]. I just did it for an edit window. You can do similarly for a button.
you can also handle the WM_SIZE message.
What is the type of application that you are working on?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
my requirement is like this.. i have to simulate a buton which can be moved as well as resizable. It shud not get a feeling like its enclosed in a dlg.
|
|
|
|