|
"_$h@nky_" wrote: if(from_date>=Record_date && to_date<=Record_date)
Funny.
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]
|
|
|
|
|
Hello to all,
I have created one MDI application and in this application I want to remove maximize button of main application window with its box also,means I want to keep only minimize and close button there.I wrote following code in CMainFrame::PreCreateWindow() function,
BOOL CMainFrame::PreCreateWindow()
{
if( !CMDIFrameWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.style = WS_OVERLAPPED | WS_CAPTION | FWS_ADDTOTITLE
| WS_THICKFRAME | WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_MAXIMIZE;
cs.style &= ~WS_MAXIMIZEBOX;
return CMDIFrameWnd::PreCreateWindow(cs);
}
But the problem is that it is not removing maximize button completly,it is only disabling maximize button there, though now I can not operate maximize button but I can see maximize button and its box there which is disabled.I want to remove that box and maximize button completly,can anyone help me how to do it?
Thanks and Regards,
Anay
|
|
|
|
|
AFAIK you cannot do that. MAXIMIZE & MINIMIZE buttons are a 'both or none' option.
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]
|
|
|
|
|
AnayKulkarni wrote: cs.style = WS_OVERLAPPED | WS_CAPTION | FWS_ADDTOTITLE
| WS_THICKFRAME | WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_MAXIMIZE;
cs.style &= ~WS_MAXIMIZEBOX;
Why are you adding the WS_MAXIMIZEBOX style and then immediately deleting it?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Try following
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
cs.style &= ~(WS_MINIMIZEBOX|WS_MAXIMIZEBOX);
return CFrameWnd::PreCreateWindow(cs);
}
|
|
|
|
|
Hello,
I made a dll that exports several functions, 2 of them are:
-dllCallCreateWindow
-dllCallHandleMessages
My console application calls above two functions. Now, in my console application, I want to be able to attach child dialogs to my CFrameWnd. How can I do that?
The idea is to have my dll creating a CFrameWnd and running with a default behaviour, but if the user wants to customize the CFrameWnd, he should be able to add child dialogs created by himself in the console application.
I can create dialogs in the console application, but I cannot specify the parent window (If I use the CWnd object returned by the dllCallCreateWindow, the application crashes).
Any help is greatly appreciated 
|
|
|
|
|
Hi All,
I would like to know about the system() command in C++. pls help me....
Thanks and Regards,
Anitha
|
|
|
|
|
system() ? For once, it's a nasty thing, which must be avoided. If you're calling it for some reason, there's most probably some other better way.
Say me, what more would you like to know about system() command?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
hi,
I need to access Java Servlet ("http://192.197.66.99/sample/checkName") in C++.
|
|
|
|
|
I don't know how do you access a Java servlet from C++.
We were talking about the system() command and how bad it is... But probably you are looking for ShellExecute() may be?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
AnithaSubramani wrote: I need to access Java Servlet...in C++.
See here.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
yah sir but why system iz bad and System iz good? Iz becoz System.Console.write workz?
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]
|
|
|
|
|
What about reading the documentation [^]?
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]
|
|
|
|
|
CPallini wrote: What about reading the documentation [^]?
Cheettar! So, you are reeding the docs and answering. You plagiarist!
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Nah............You're wrong, I never read the documentation : I just find and post it
==========> another THHB's crime! <==========
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]
|
|
|
|
|
CPallini wrote: THHB's
What does that mean ? It's not the first time I see you talking about that but I probably missed the initial discussion about it
|
|
|
|
|
THHB ^
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]
|
|
|
|
|
For your benefit, I've seen you've been asking this for a while.
But there are not so much of Java experts here, so I suggest that you try out a good Java discussion forum on the Internet (CP has a Java board, but is not very much active yet). They will probably suggest you a way out on how to access a Java servelet from C++.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
|
hi,
I am using a TabControl in my application with two tabs. The focus being on the first tab button.
But the problem is that i am able to see the page related to first tab control but the two tab control buttons are not visible. My application is in mfc
Please tell me whats the problem
Thanks In Advance.
Dhiraj Kumar Saini
|
|
|
|
|
It sounds as though you did not successfully add the second page. How are you calling InsertItem() ?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I believe you have to override TCN_SELCHANGE and select the correct view
Still not a good day to die...
|
|
|
|
|
I all
I am geting error when i am useing this code in header file.
BOOL f = ::IsClipboardFormatAvailable(CF_HDROP);
if (f)
{
f = ::OpenClipboard(GetSafeHwnd());
HDROP hDrop = (HDROP)GetClipboardData(CF_HDROP);
UINT cFiles = ::DragQueryFile(hDrop, (UINT)-1, NULL, 0);
CString szText;
char szFile[MAX_PATH];
for( UINT count = 0; count < cFiles; count++ )
{
::DragQueryFile(hDrop, count, szFile, sizeof(szFile));
szText += szFile;
AfxMessageBox(szText);
szText += "\r\n";
}
f = ::CloseClipboard();
}
How can i remove this error.Plz help me
|
|
|
|
|
MsmVc wrote: How can i remove this error
Without some kind of context for that code it's hard to tell.
The only way it's going to work is if that code is in a method of a CWnd derived class.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks.I will try to derive CWnd class.
|
|
|
|