|
Check out the following URL How defrag works
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Hello,
how can I disable the close button (x) in a child window
of an mid application, f.e. from a specific opened document?
thanks
|
|
|
|
|
EnableMenuItem (GetSystemMenu(hwnd, FALSE), SC_CLOSE,MF_BYCOMMAND | MF_GRAYED);
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Another possible (brute force) method could be to
OverLoad OnClose function (the message WM_CLOSE) in CMainFrame class.
void CMainFrame::OnClose()
{
// Call the default implementation if you want the close functionality
if (close_allowed)
{
CMDIFrameWnd::OnClose();
}
// else do nothing
}
Software Engineer (Techlogix (pvt)ltd)
Visiting Faculty Informatics, Lahore
|
|
|
|
|
Hi,
Could anyone pl tell me from where i can download Windows XP Beta 2 SDK?
Thanks
Neha
|
|
|
|
|
You need the lastest platform SDK, go to msdn.microsoft.com.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Picture the daffodil. And while you do that, I'll be over here going through your stuff.
|
|
|
|
|
I had tried that,But while installing it was giving me error 1603 & 512.
Is there anyother way to get uxtheme.lib & other theme related header & lib files?
Thanks
Neha
|
|
|
|
|
Hi,
Is there any function to get the names of all the process running in the machine. I'm using vc++ 6.0. Also if i know the system name, is there any function to get the information of process running in that machine..
|
|
|
|
|
Check the rather comprehensive MSDN article HOWTO: Enumerate Applications Using Win32 APIs (Q175030) for information on how to enumerate both top-level windows and processes, for all the usual Windows operating systems.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
|
Use the ToolHelp functions for example
See CreateToolhelp32Snapshot(), Process32First(), Process32Next()
So far ... RockNix///
---------------------------------
www.klangwerker.de
Look out for free Win32
Serial Communication Module
for VC++ or Borland C++ Builder
---------------------------------
|
|
|
|
|
Thanks. But if I get the name of another system, is there any way to get the names of processes running in that system.
|
|
|
|
|
Sweet...I asked about this the other day, but nobody answered me...
Thanx man!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
I have a dialog box featuring a CAnimateCtrl which is fed a resource-located simple AVI stream. In OnInitDialog I just call m_animate.Open(IDR_AVI); and m_animate.Play(0,(UINT)-1,(UINT)-1); . Everything is pretty straightforward and worked just fine till I addded an RT_MANIFEST to let the program use the newest version of Common Controls in XP (you know, to get the new funky look). Now, my AVI displays as if in transparent mode: the AVI background, which is black, is replaced with the windows background color. Nevertheless, the CAnimateCtrl has not been set the transparent style!
In older OSs the AVI shows fine as it did before including the XP theme manifest.
Anyone has experienced similar problems? Ideas, workarounds? Thank you in advance.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Interesting... Are you creating the control larger than the animation? If so, is ACS_CENTER set? Try setting/not setting this flag & see if it has any effect.
Otherwise, according to MSDN if you set the ACS_TRANSPARENT flag you can then intercept the WM_CTLCOLORSTATIC message & set your own background color; this is kindof a hack, but might be your only (portable) option.
farewell goodnight last one out turn out the lights Smashing Pumpkins, Tales of a Scorched Earth
|
|
|
|
|
Interesting... Are you creating the control larger than the animation?
No I'm not.
I'll try the WM_CTLCOLORSTATIC hack. Thanx for your suggestions.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
The WM_CTLCOLORSTATIC hack sort of did it. This will do for now (I've got a deadline approaching), but I think I'll investigate the problem a little further later. Thank you very much for your help.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hello,
how can I create a msproject file with content via com?
thanks
juergen
|
|
|
|
|
Is this another commandline question or do you mean com as in component object model..?
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Hi
i'm trying to write a program that compute integrals of functions of single variable f(x), the program will ask the user to enter the function for which he needs te compute the integral. my question is : once the user enter the function formula (for exemple: f(x)=log(x)+cos(1/x)), how can pass this formula to the program.
thanks
|
|
|
|
|
You can only pass that as a string, you'll obviously need to parse it from there.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Picture the daffodil. And while you do that, I'll be over here going through your stuff.
|
|
|
|
|
do you have an idea on how to parse it from string to math function.
thanks
|
|
|
|
|
You're going to have to search the string for brackets, work out the order of operations, and then check for maths functions, and call them. The problem is quite simply that you're going to have to write code for each math function you want to support.
Basically, it's not a pretty job. You may be able to do it easier by writing a macro.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Picture the daffodil. And while you do that, I'll be over here going through your stuff.
|
|
|
|
|
|
Hi,
I have used one Microsoft Remote Data Control to connect to FlexGrid Control in my Application.How can I change SQL Property of the RDC at runtime so that the FlexGrid shows me the Result of the New Query
Pls Help
|
|
|
|