|
SendMessage(<windowhandle>,WM_MINIMIZE,0,0);
To get the window handle use FindWindow() or if its from the application itself u are sending the message u can access it directly.
|
|
|
|
|
WM_MINIMIZE: undeclared identifier.
Normally, it is the CFrameWnd which needs to be closed.
In my App class it is constructed and show:
m_pFrame = new CMainFrame;
m_pFrame->ShowWindow(SW_SHOW);
m_pFrame->UpdateWindow();
//Send MINIMISE message.
SendMessage(m_pFrame->m_hWnd,SW_MINIMIZE,0,0);
Doesn't work neither :x
|
|
|
|
|
how about
ShowWindow(SW_SHOWMINIMIZED);
??
|
|
|
|
|
|
I am writing a C debugger ...I am using MFC for GUI development..
My req. is as follows & if somebody knows how to do or can give me some ideas, i will be thankful for them..Thanks David for ur first reply..
1. open C source file which retains standard coloring of keywords of C langauge ..&
2. a new view window which display line number & have capabilty to set break-points i mean some sort of bitmap..(like M VC++ editor have)
3. a shared vertical scroll-bar between these windows.
I am using RichEditView class for other operations like get line number on double-clk,etc..
Regards
Irshad
|
|
|
|
|
Are you through with the logic of debugging a exe file ??? if not that is of high priority.
this problem is only the tip of the iceberg.
|
|
|
|
|
|
|
Is there any way to insert a NULL value into database using CAccessor class, or a way to verify if the value fetched from the database is NULL? It seems to be value 0 in both cases, which is not the same as NULL. I'm using Microsoft SQLServer. Thanks.
|
|
|
|
|
I can disable the menu item on the popup menu,but I can't make it grayed.
My program is written on MFC.
void CTesttabctrl2Dlg::OnUpdatePause(CCmdUI* pCmdUI)
{
// TODO: Add your command update UI handler code here
if( m_bPause )
pCmdUI->Enable(FALSE);
else
{
pCmdUI->Enable(TRUE);
}
}
|
|
|
|
|
use EnableMenuItem api this api has the option to gray it.
|
|
|
|
|
My program is a dialog based program.From MSDN I know that I must gray the menu item in ON_UPDATE_COMMAND_UI handle,so,I wrote the program:
void CMenuDlg::OnUpdatePause(CCmdUI* pCmdUI)
{
// TODO: Add your command update UI handler code here
if( m_bPause )
pCmdUI->Enable(FALSE);
else
{
pCmdUI->Enable(TRUE);
}
}
It works in MFC SDI program,but it doesn't work in MFC Dialog based program.
It can disable the menu item,but it cann't gray the menu item.
|
|
|
|
|
Why dont you do it while loading the popup menu?
(Some code is everytime helpful to understand the problem)
Try this @ home. (B&B)
|
|
|
|
|
Hi,
Anybody help me to retrieve the system users access permission (Administrator rights/ Normal User/ ...) in different OS (WinXP/ Win98/ Win2000) for my application.
I Need it very urgently...
|
|
|
|
|
Hey, what's the rush?
There are no rights in Win9x or WinME.
There are rights, or privileges. You can determine these programmatically using GetTokenInformation. See PSS ID 119669 on MSDN for more details.
If you're talking about working out whether the user is an administrator, then that's PSS ID 118626 on MSDN.
If you're talking about file permissions, that's NTFS only, so the first thing is to determine the volume type. If it's NTFS, then you need to get to grips with ACLs, SIDs and the like (but it's not as difficult as it first seems...)
Steve S
|
|
|
|
|
Thanks ![Rose | [Rose]](https://www.codeproject.com/script/Forums/Images/rose.gif)
|
|
|
|
|
Thanks Steve,
I need to check on NTFS format, whether the given path is accessible by the current login user or not.
|
|
|
|
|
I want to run my application when someone clicks on the reply button in OutLook. Can I write a add-in to do this?
Thanks
Ralph Krausse
www.consiliumsoft.com
CSFastRunII, a new kind of application launcher integrated in the taskbar!
ScreenShot - http://www.consiliumsoft.com/ScreenShot.jpg
|
|
|
|
|
It is excited to see so many powerful windows control here. However, I am really quite new to MFC, so I am quite confused when entering the area of Doc/View structure. Say, how can I use the enhanced control in doc/view program, e.x How can I use the extended Tree control as base class for the TreeView instead using the one along with the MFC framework.
Thanks in advance.
|
|
|
|
|
Why do you want to do that, TreeView is employs all the functionlality that tree control provides, If you do the samething you will comeup with ur treeview and will be doing the same thing.
So save ur time. If you are using MFC then make full use of it.
regards,
Prakash.
|
|
|
|
|
Hi all,
I want to migrate a windows application from one machine to another with its state intact.
I was thinking of doing this by saving the process address space (code, stack, heap etc) into a file taking it to the other machine and copying it onto the space of an identical application just started on machine 2.
Ofcourse I am assuming that the application does not have external dependencies like open network connections and file I/O happening. e.g word/notepad.
I am familiar with how to get the process table in Linux but need help badly for working with windows. How do you get the addresses of the process image? Any references... help would be greatly appreciated.
Regards,
Zahid
|
|
|
|
|
I was wondering if there was a way that I could find out when data was being sent and received by dial-up networking (RAS). I would like to write my own connection monitoring program but I am not able to find a RAS tutorial that will tell me how to do this. Please advise.
Mr. Man
|
|
|
|
|
Hi all!
I have to make a CORBA interface for my Visual C++ application but when I try to compile the .idl file I get errors with CString type. How could I solve it?
Thank you in advance!
|
|
|
|
|
You cant have CString in idl file.
|
|
|
|
|
COM doesn't support CString
try using BSTR its meant for COM
Read the following article
http://www.codeproject.com/string/bstrsproject1.asp
Regards
Suneet Chandok
|
|
|
|