|
Control Panel->Display->Effects->Show window contents while dragging. Uncheck this checkbox.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it!
|
|
|
|
|
Thanks for your quick reply. However, I still want that option checked and moving/resizing controls without any flicker.
|
|
|
|
|
Look up
BeginDeferWindowPos
DeferWindowPos
EndDeferWindowPos
and try using those functions instead.
Iain.
|
|
|
|
|
Hey all, I am looking for a way to detect if certain applications are running. For instance, if I have an application running that is XXX.exe, how can I detect if the process is running? I am trying to write a small app where the user can select the filename exe and I will go looking to see if that application is running. I am not sure what to use, I have looked through the articles but I couldn't find anything that matches, but it could have been the search criteria I am using as well. This is for VC 6.0, no C# or .NET is involved. Any ideas???
|
|
|
|
|
See the EnumProcesses function.
|
|
|
|
|
Use these Apis
CreateToolhelp32Snapshot : to get handle of all running process
then using
Process32First and Process32Next enumerate all the process.
-----------------------------
"I Think this Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
i am developing a dialoge based application and i want to use while loop in it but it does not work the way it works in simple console application, can any one help me in this,
|
|
|
|
|
syaks wrote:
it does not work the way
You might elaborate on what you mean by it is not working. Give some details on what the code should do and what it is doing, and paste a few lines of your code in the forum. It will give a better idea of what the problem might be.
|
|
|
|
|
window is event-base, that means that when the application catch a message, the "main function" (winmain) calls the function associated to this event. if you write a while loop in one of these functions, you take the risk that if your loop is infinite, your program look dead (in fact, blocked in the loop)... you so must be careful on such loops in windows programming.
why do you want a while ?
can't you use a timer instead ?
TOXCCT >>> GEII power [VisualCalc]
|
|
|
|
|
Huh ?
what exacly are you trying to do ?
while loops work the same way in dialog based applications or console applications; loops will always "stop" the normal flow of the application; meaning that if you want to use a while loop in your dialog, and you see that the UI does not respond, well, that's the way it is; if you need the UI to respond to user input while doing a loop, have a look at some of the articles here on CP ( I don't have a direct link ).
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
When using scrollview how often does the scroll refresh the screen?
Right now my text print out would overlap if I scroll too fast. As soon I resize the print out would be correct, which leads me to believe scroll is skipping drawing update.
I wrote a little debug to see what my scroll position but most of the time it wouldn't print out until I resize the window.
|
|
|
|
|
My debug info should disappear when I scroll but it stays around when I scroll up and down(until "next scroll update" or resize update)
|
|
|
|
|
How can I change the postion of the "Message Box" window.
|
|
|
|
|
CWnd::SetWindowPos()
TOXCCT >>> GEII power [VisualCalc]
|
|
|
|
|
Hey every one.
we know that we can change any project and give it xp look, but I am wondering if there any way to give it MACINTOSH look...
I read in the site -=> http://www.codeproject.com/w2k/xptheme.asp[^]
by using xml codes... so any way to do it but with MAC theme?
thanks in advance
|
|
|
|
|
Not as simply as it is for the XP theme - that example is to make a non-.NET app running on XP use the XP theme - it's not overriding anything in the system, just setting a few flags to tell Windows how to handle the application.
If you want to use an entirely different theme, then you'll either have to code it yourself (creating derived classes of all the standard controls and custom painting them - not an easy task at all!) or use something like WindowBlinds[^] that can re-skin Windows to look vastly different
--
Help me! I'm turning into a grapefruit!
Phoenix Paint - back from DPaint's ashes!
|
|
|
|
|
I am having problems adding the current date and time to a string. This is the code I have so far. Please let me know what I am doing wrong.
CPString psPathFile;
SYSTEMTIME systime;
GetSystemTime(&systime);
psPathFile += "C:\\It\\";
psPathFile += "data";
psPathFile += systime.wYear;
psPathFile += systime.wMonth;
psPathFile += systime.wDay;
psPathFile += systime.wHour;
psPathFile += systime.wMinute;
psPathFile += systime.wSecond;
psPathFile += ".mwd";
Thanks,
Einar
|
|
|
|
|
The problem is that systime.wYear, wMonth, etc are not strings or characters - they are decimal values of the year, month, day, etc.
You need to format those values to strings. (I'm not familiar with CPString as you have, but for CString you could use something like:
CString psPathFile;<br />
psPathFile.Format("C:\\It\\data%4d%2d%2d%2d%2d%2d.mwd", systime.wYear, systime.wMonth, systime.wDay, systime.wHour, systime.wMinute, system.wSecond);
The end result would look like:
C:\It\data20041129132020.mwd
Hope that helps.
|
|
|
|
|
That seems to be exactly what I need, but I noticed something odd.
This is one result I received:
c:\it\data20041129205020.mwd
This result would be fine if it was 8:50PM but it is 2:50PM here now. Should the result be using military time (24 hour clock)? And why do I get 20:50 when it should be 14:50?
I also received an odd result when seconds where lessw than 10:
c:\it\data200411292050 7.mwd
Is there any way to get it to left pad it with zerso?
Thanks,
Einar
|
|
|
|
|
Well the left padding with a zero was pretty easy just use the flag 0.
The issue with the hour is still puzzling me. It is just past 3PM (15) on my computer now but somehow the SYSTETIME.wHour thinks it is 9PM (21)
Any help would be appreciated.
Thanks,
Einar
|
|
|
|
|
Hmmmm I guess the only thing that makes sense it that I am located in the central timezone (GMT -06:00) and what do you know 21:14 - 06:00 = 15:14 which is the time my computer tells me it is.
Wow this is really odd and I would rather the computer gave me the current time (according to the computer) and not changing it to GMT.
Anyone know how to accomplish this?
Thanks,
Einar
|
|
|
|
|
According to MSDN:
GetSystemTime<br />
The GetSystemTime function retrieves the current system date and time. The system time is expressed in Coordinated Universal Time (UTC).
You might try
GetLocalTime<br />
The GetLocalTime function retrieves the current local date and time.
Hope that helps.
|
|
|
|
|
GetLocalTime was just what I needed.
Thank you much.
Sincerely,
Einar
|
|
|
|
|
How can I calculate exactly the size of a string in Bold or Italic? GetTextExtent() apparently doesn't care about Bold and Italic settings.
Thanks.
|
|
|
|
|
Dear Sirs,
We need to create an application that supports Hebrew. Could anyone please give me an explanation on how use hebrew strings as resources and use them on a Visual C++ 6/MFC application?
Thanks,
Sergio
|
|
|
|