|
This is for you
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
hey guys and girls, sorry if this has been asked before but i couldn't find much on it, is there a quick and easy way show a open dialog box and get the filename they select?
thanks for any help
m.
|
|
|
|
|
if using mfc, see CFileDialog
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
Simple,check:CFileDialog
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
CFileDialog open(TRUE, "ext", "Untitled");
CString file = open.GetFileTitle();
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Is there some function that gives me the weekday if I lend it a date? For example, if I feed it 11.02.2001 (today) it returns monday. It will simply be too troublesome to create such a function myself
Sprudling
|
|
|
|
|
check CTime::GetDayOfWeek
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
It seems that MS Visual C has compiling options
just for Portable Executables forma.
I want to write a boot sector. Can anybody tell me
if I should use another tool? Or is a way to enable VC
to compile in such target? Or maybe I should use DDK?
Thanks.
|
|
|
|
|
|
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
|
|
|
|