Search:
Type: Posts; User: nitinmalapalli
Search:
Search took 0.05 seconds.
-
November 19th, 2011, 02:01 AM
Hello all,
I'm designing a windows app with MFC whose main frame window cannot be resized or dragged. The window is initialized to be maximized and remains so throughout it's use, refusing to be...
-
Thanks Igor, I tried searching with "system tray WM_" and i found out that if I
1.) #define WM_NOTIFYICON WM_USER+1
2.) nid.uCallbackMessage = WM_NOTIFYICON
3.) ON_MESSAGE(WM_NOTIFYICON,...
-
I just got the icon to stay. However, I'm still clueless about capturing messages like WM_RBUTTONDOWN and displaying a menu for it.
-
Thank you ejmw, hypheni, Skizmo and Igor for replying and sorry for the late reply!
Igor, that's a very appropriate sketch of what i've done. I just need to incorporate the system tray icon.
...
-
Hello all,
How does one begin to program system tray applications? I assume that we don't need a CFrameWnd class at all and we only initialize a CWinApp class. I still have no idea how to begin....
-
I fixed it. The CFile::modeCreate was causing the problem all along. Thanks very much, you've been very helpful!
-
I see. So how could I initiate the open and load routine? I'm trying to get CArchive::IsStoring() to be false and CArchive::IsLoading() to be true. There is no function to set this change.
-
Here's the code where i open the file. This method decides based on a parameter nOp whether to save or to load. 1 is to save and 0 is to load.
//Save or load the object!
void CMainWindow ::...
-
Hello all,
I'm using serialization to save an object to a file. Here's the method:
//Saver
void Table :: Serialize(CArchive &cArch1)
{
CObject::Serialize(cArch1);
-
Thanks a lot! I think i can close this thread now. I got all the information i needed. Thanks again.
-
It is actually a custom-made table which has 5 fields to each entry and possibly hundreds of such entries.
Could CArchive possibly help reduce a great deal of effort? All the entries are contained...
-
Hello all,
I am working on a project and i need to save a CString to a file and load it back later. I found out that i could use:
1.) the CFile method.
2.) the CArchive method.
3.) the...
-
February 24th, 2011, 06:43 AM
Thanks very much for the explanation. I've now tried using the CDialogBar instead.
1.) Since I've chosen to use CDialogBar, do i still subclass it and create the controls as private?
2.)...
-
February 23rd, 2011, 07:59 AM
I tried making a CControlBar derived class, but it signals this error:
1> 'void CControlBar::OnUpdateCmdUI(CFrameWnd *,BOOL)' : is abstract
1> c:\program files (x86)\microsoft...
-
February 21st, 2011, 07:54 AM
Thank you so much for replying! I'm working on it and I will get back to you about it. I've sub-classed CControlBar and i'm transferring all the control related functions.
Thanks again.
-
February 20th, 2011, 12:27 AM
Hello again,
I was wondering how I could "fix down" a CButton or CEdit control in a scrollable main window. The problem is that when such a window is scrolled, the CButton or CEdit control floats...
-
February 19th, 2011, 11:16 PM
Hello
Could you please guide me to a nice MFC AppWizard tutorial? I have never used it before and am interested in learning how to use it.
Thanks
-
February 17th, 2011, 11:13 AM
Alex, are you saying that the condition is flawless? I'd be extremely relieved if the error lay outside that because I've been raking my brains hard.
I've actually posted all the relevant code...
-
February 17th, 2011, 07:10 AM
Thanks for replying, Alex. The problem is that the above code is not being reached. My question is: What could be the condition I need to use to achieve the desired effect?
-
February 16th, 2011, 07:10 AM
Hello again,
I was worrying myself over the following problem:
Consider a CEdit control in a scrollable window. When the window is scrolled and consequently the CEdit control is scrolled out...
-
February 14th, 2011, 08:18 AM
I could do that. But wouldn't it be a problem when I run the app on a computer with different monitor specifications having different resolutions? Dabbling with pixels can cause such errors, right?
-
February 13th, 2011, 11:54 AM
I had hoped that perhaps this was a standard problem.
-
February 13th, 2011, 11:51 AM
I have been trying precisely that. Any suggestions as to how I can do that? What sort of adjustment would I have to do? I have tried many combinations but none of them work.
-
February 13th, 2011, 06:12 AM
This is how I create the CEdit control:
void CMainChildWnd :: OnLButtonDown(UINT nFlags, CPoint point)
{
GetClientRect(&cRectChildWnd);
if(cNewEntry.crEditorAdd.PtInRect(point))
{ ...
-
February 13th, 2011, 12:45 AM
Hello all,
I am developing this little app in which there's a table and the user may scroll sideways to view the full table and choose to make an entry in any of the cells by clicking on the...
|
Click Here to Expand Forum to Full Width
|