|
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
|
|
|
|
|
There is no way. The Common Dialogs are not designed to run as child windows. Microsoft calls this "Behaviour by design", and unfortunately there's nothing you can do about it.
If you're trying to build a Paint-like application that has a color selection window that the user can use to pick up pen/box colors or something like that, then the only way you can implement such a window is to create it yourself, bottom-up. I'm not sure if there are any examples available in Code Project, but creating it yourself is good practise anyway
To use the CColorDialog properly, you first create an object of CColorDialog, then call DoModal to display the color dialog. When user has selected color and dismisses the dialog screen, you can use the member functions of the class to retrieve the selected color. Do NOT call Create yourself, but allow the framework to do it for you.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
I really have no single idea how to display a graphic on my Pocket PC application. I am using the MFC API. Have been trying all the codes given, but they don't seems to work. Have no idea where to place the codes. Any kind soul please help. Thanks.
|
|
|
|
|
HI ,,,
I m using VC++ 6 and DirectShow
Compiling in Release mood + Using MFC Static Library
following errors there ,,, but when i change to Shared DLL
there is no such error
Linking...
LINK : warning LNK4049: locally defined symbol "_strrchr" imported
thanx
Strmbasd.lib(wxdebug.obj) : error LNK2001: unresolved external symbol __imp__sprintf
Release/cam.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
|
|
|
|
|
The error messages imply that your link settings are bad. If you have manually changed to static linking, you are on your own - you'll have to make sure that all necessary libs are included in the link.
You are not likely to get many answers for questions like this, as you should first of all try looking up the error messages in the help or on MSDN, and that there are about a bazillion ways you can muck up the complier- and linker settings yourself.
Try creating a new project with the correct settings from the start, and copy the relevant files, then - if you are interested - check the differences in settings between the two. You might also want to read up on linker settings.
|
|
|
|
|
Are you sure you are linking against one of these libraries?
LIBC.LIB Single thread static library
LIBCMT.LIB Multithread static library
MSVCRT.LIB Import library for MSVCRT.DLL
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Hi,
please help me,how to display the TIFF file in MFC Application,i dont want to use CXImage given in codeproject and any other library ,please specify any other way to do it.
Bye
-Mahatma
|
|
|
|
|
Hi..dear..
Use LibTiff Library..This is Direction...
Check material on internet..
Bye
Never consider anything Impossible before trying to solve that..---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
|
|
|
|