|
Its open dialog box again and again i want if dialog box is already open its not open again only show tha previous one.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
"_$h@nky_" wrote: i want if dialog box is already open its not open again only show tha previous one
For this you should create modless dialog and show/hide as required.
Regards,
Sandip.
|
|
|
|
|
If it's a single threaded function, the main thread will be blocked if you've already called "DoModal" (which means the window is visible". So you will not be able to execute the any other functions during this period (sure you can get paint messages and some other notifications to your parent window).
In which case, it's required to check the windows is showing or not?
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
How about using a flag to detect this?
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
yes its working with use of flag.
thanks
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
modified on Tuesday, February 3, 2009 1:13 AM
|
|
|
|
|
Welcome!
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Hi everyone there,
I need to make a mapping (two column) in vc++(win32). I was suggested to make an INI file. But i don't have any idea about it, and how to use it in vc++. Could someone pleas help me.
Thanks in advance
I am a learner Always
|
|
|
|
|
YOu can use PrivateProfile Set/Get functions[^]to manipulate INI files. Please note that INI file formats are deprecated. If possible to switch to XML file format.
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
thanks
I am a learner Always
|
|
|
|
|
.INI files contain one or more sections. Each section begins with a section name, which is followed by zero or more entries. An entry associates a keyname with a value. The general format is:
[section]
keyname=value
Use GetProfileString()to retrieves the string associated with a key in the specified section of the ini file.
http://msdn.microsoft.com/en-us/library/ms724366(VS.85).aspx[^]
aks
|
|
|
|
|
thanks aks
where can I get information for ace message queue of ace framework....I wanted a simple message quque for my application...please help
Thanks
I am a learner Always
|
|
|
|
|
|
|
I've got a question about programming for mobile devices in winapi. Is that possible to check if a mobile device like pocket PC or palmtop was connected to ActiveSync? I mean I need a code that will catch an event when the connection is established and active sync notifys about that.
I'm using WinAPI, VS 2005 SP1, Windows Mobile 6.1
|
|
|
|
|
I believe CeRapiInit is what you're looking for.
«_Superman_»
|
|
|
|
|
thanks, but I'm afraid it's only for PC side notification
rapi.h does not exist on the device's API...
|
|
|
|
|
Hello All,
I have a large legacy application that I will soon be updating with some new development. The new features will require a fair amount of owner draw stuff. My concern is that some of the application's current owner draw stuff runs slowly on Vista. Win2K and WinXP run great. I'm not sure what's causing the slowness on Vista, but I want to figure it out before the new development. I'm not sure whether it's poor programming (although it seems pretty adequate to me) or whether I need to swap out all the pDC->MoveTo() pDC->LineTo() etc... for some other methodology or switch to a Directx equivilent or something. I'm developing in Visual Studio 2003 so perhaps upgrading to VS2008 would fix the problem?
Anyone have any similar experience? Any thoughts?
Thanks in advance.
|
|
|
|
|
Windows Vista graphics subsystem is designed to work with Direct3D. Existing graphics interfaces, such as GDI, GDI+, and older versions of Direct3D are still supported in Windows Vista, but are internally remapped where possible. So you will surely experience a performance hit. To compromise these things, you need high performance hardware.
The operating system itself using lot of resources and running many background services than Windows XP. You need to have better computer components than previous. If your application is drawing intensive, you may need a good graphics card as well.
Direct2D [^]is a new technology which is being developed by Microsoft to replace GDI and GDI+. It's currently supported in Windows 7 and it will be the future of 2D Drawing.
Check Tim Anderson's Performance test [^]with Windows XP and Vista
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
Thanks Sarath. These are quite helpful. Tim Anderson's article seemed to be expressing exactly what I have experienced. Since customers will be getting this software, I can't demand they upgrade their hardware so I will look into the Direct2D.
Thanks again.
|
|
|
|
|
It occurs to me -- what's the support for Direct2D in Vista, XP and Win2K? Do you have any idea about this?
|
|
|
|
|
Hello
I'm trying to use the FSCTL_GET_VOLUME_BITMAP Control Code(which gets a bitmap of the used/unused clusters on the volume). It's been working fine on NTFS but when I try it on a FAT32 partition it doesn't seem to work that well. It doesn't error or something but the retrieved bitmap isn't representative. Firstly is off by a few clusters and the cluster representation (used or unused) isn't valid.Can anyone help me with this?
Thanks.
|
|
|
|
|
Does any one know how can I export the strings from the string table in Resource view to a file may be .xls or .csv .... I would think there would be a way to read this table and write it into a file? Any commands to do this?
Thanks
sft
|
|
|
|
|
How about writing a simple for cycle which scans thorough the string IDs from the lowest to the highest, loads the strings and then saves them in whatever format you wish to save it in? Something like
CString String;
for (int id = LOWEST_STR_ID; id <= HIGHEST_STR_ID; id++)
if (String.LoadString(id)) { }
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
Nice idea.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
The resource script (.rc) file is a text one, you may read, parse it and export the strings.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|