|
For helping translation of an application, i've written an utility that compares 2 french resource (.rc) files (the previous and the last version); then only the terms that were changed or added are displayed, and one can type the translation. As translation is depending on context, i'd like to display the resource (menu or dialogbox) from which the terms to be translated come from.
I've found utilities that extract and display resources from executables or .res files, but it's not possible to control these utilities to make them display one dialogbox (for example : display dialogbox whith ID = 123).
Does someone know such an utility, or, better, how can i myself display a dialogbox from a .rc (or .res) file ?
JPG
|
|
|
|
|
Hi, I think if what you require is an way to view resources then you can do the following.
1) use FindResource/FindResourceEx to locate the required dialog box in your resource.
2) Use CreateDialogIndirect or likes to create and show an dialog box in its running condition. (Use an dummy wndproc for it).
Frm
goyalmayank@hotmail
Mayank Goyal
|
|
|
|
|
I have a phone application that sits minimized in the system tray. When the handset is lifted, I want the window to be displayed and activated.
Currently I use...
pdlg->SetWindowPos(&wndTopMost, 0, 0, 0, 0, SWP_SHOWWINDOW | SWP_NOSIZE | SWP_NOMOVE);<br />
pdlg->SetForegroundWindow();<br />
pdlg->SetFocus();
If another application is active, when I lift the handset, this code shows the window, and makes the window title bar flash, but does not grab the input focus or activate the application.
Can someone help please? TIA
I feel like I'm diagonally parked in a parallel universe
Jerry Davis
http://www.astad.org http://www.jvf.co.uk
|
|
|
|
|
try:
pdlg->ShowWindow(VALUE);
With VALUE= SW_FORCEMINIMIZE
Windows 2000/XP: Minimizes a window, even if the thread that owns the window is hung. This flag should only be used when minimizing windows from a different thread.
SW_HIDE
Hides the window and activates another window.
SW_MAXIMIZE
Maximizes the specified window.
SW_MINIMIZE
Minimizes the specified window and activates the next top-level window in the Z order.
SW_RESTORE
Activates and displays the window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when restoring a minimized window.
SW_SHOW
Activates the window and displays it in its current size and position.
SW_SHOWDEFAULT
Sets the show state based on the SW_ value specified in the STARTUPINFO structure passed to the CreateProcess function by the program that started the application.
SW_SHOWMAXIMIZED
Activates the window and displays it as a maximized window.
SW_SHOWMINIMIZED
Activates the window and displays it as a minimized window.
SW_SHOWMINNOACTIVE
Displays the window as a minimized window. This value is similar to SW_SHOWMINIMIZED, except the window is not activated.
SW_SHOWNA
Displays the window in its current size and position. This value is similar to SW_SHOW, except the window is not activated.
SW_SHOWNOACTIVATE
Displays a window in its most recent size and position. This value is similar to SW_SHOWNORMAL, except the window is not actived.
SW_SHOWNORMAL
Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time
Maybe it helps, maybe it doesn't...
Good luck!
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
|
|
|
|
|
Thanks, but I've tried that vast majority of those! They don't seem to work, which is why I'm using SetWindowPos.
It works if the application is active, but if I'm reading an email and I lift the handset, it doesn't.
I feel like I'm diagonally parked in a parallel universe
Jerry Davis
http://www.astad.org http://www.jvf.co.uk
|
|
|
|
|
ok last idea: maybe you can set the focus on a control instead of on the dialog?
(first set your dialog back up and then set focus to some control of your dialog)
Good luck!
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
|
|
|
|
|
|
Have you tried BringWindowToTop()?
Bikram Singh
|
|
|
|
|
See the delightfully devious "How to steal focus on 2K/XP" section of Nishant's excellent article, "Some handy dialog box tricks, tips and workarounds."
http://www.thecodeproject.com/dialog/dlgboxtricks.asp
|
|
|
|
|
SRV wrote:
See the delightfully devious "How to steal focus on 2K/XP" section of Nishant's excellent article, "Some handy dialog box tricks, tips and workarounds."
Fantastic! Just what I needed thanks.
Typical - the answer is usually on CodeProject somewhere!
I feel like I'm diagonally parked in a parallel universe
Jerry Davis
http://www.astad.org http://www.jvf.co.uk
|
|
|
|
|
Is their a difference when you redraw a control with scrollbar and a control without scrollbar?
I have a MSHFlexGrid control and the redraw without scrollbar is very fast. With scrollbar however, it starts to flicker for quite a long time.
What's the problem and what to do?
tnx in advance!
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
|
|
|
|
|
I want to setup hotkeys in my application to control vobsub to show ,hide or shift the subtitles for DivX video becuase the VobSub doesn't offer this service and it's not convenient to control it by mouse. As I know ,usual hotkey software use hook tech to implement such function, but I don't know VobSub's interface and don't know how to get it. I need your help!
|
|
|
|
|
AWS Report for OpenListing
---------------------------------
Hi..
Can any one help me Generate & Get Open Listing report in Amazon Web Services (AWS)
Just need steps..
Thanks
Never consider anything Impossible before trying to solve that..---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
|
|
|
|
|
1. Create a new C++ .Net / C# project.
2. Add a 'Web Reference', and insert the URL of the web service where required
3. The IDE generates all necessary files for using the web service. It is implemented by using COM, so your program must initialize COM (CoInitialize)before using the object.
4. After initializing COM, create an object of the class representing the web service on heap memory
5. Call the necessary methods, supplying any necessary parameters.
6. Delete the object
7. Uninitialize COM
8. Done
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
AWS Report for OpenListing
---------------------------------
Hi..
Can any one help me Generate & Get Open Listing report in Amazon Web Services (AWS)
Just need steps..
Thanks
Never consider anything Impossible before trying to solve that..---Sumit Kapoor---
|
|
|
|
|
AWS Report for OpenListing
---------------------------------
Hi..
Can any one help me Generate Open Listing report in Amazon Web Services (AWS)
Just need steps..
Thanks
Never consider anything Impossible before trying to solve that..---Sumit Kapoor---
|
|
|
|
|
hi, I am making a program, inside the dialog i have a list box. And i have a list of data stored in Access file, I want to know how can i get the list of data into the list box in my dialog??
Thank you very much that anyone helped... in advance
|
|
|
|
|
hi,,
Use DtataGrid control..
or handle manully..by open recordset..pick-up Items & insert & set Child in List..this is direction..next is your work
Bye
Never consider anything Impossible before trying to solve that..---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
|
|
|
|
|
Thank you for your help first... so that means i have to insert them one by one into the list box manuallY?? OK.. What i am doing is, each customer will buy different things from the company, and i want to add all the items they bought into the list, and store it into access DB. So I can retrive it last for reference... So I do i need to do to??? thank you...
|
|
|
|
|
fba218 wrote:
how can i get the list of data into the list box in my dialog??
How about the CListBox::AddString() method?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
hi all,
please answer the following problem
i have a custom control in a dialog which is in an MFC Extension Dll
a class in the DLL calls the DoModal (instantiates) the dialog
this class is then exported
when i call the class from an MFC exe the dialog does not show up!
but if the then entire activity is carried out in MFC .exe then the dialog shows up with the custom control
How do i launch the dialog from the DLL?
|
|
|
|
|
You have to register the control in the exe as well.
|
|
|
|
|
|
Hi,
You have to register the control twice - once in the dll scope, and once in the exe scope.
I do the registration of exe in the InitInstance, and the dll in DllMain.
|
|
|
|
|
Hello,
I wanted to use CColorDialog as a child in my application. Can anyone tell me how to make it a Child dialog.
Although there is a funcition called CColorDialog Create but it takes a template and a pointer to parent. Now what to give it as a tempalte.....it should use the default template for CColorDialog i guess, but i dont know how to specify this. Can anyone help please ?
Thanks
|
|
|
|