CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: nitinmalapalli

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Replies
    4
    Views
    6,198

    Full-time maximized window.

    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...
  2. Replies
    10
    Views
    13,104

    Re: System Tray Application

    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,...
  3. Replies
    10
    Views
    13,104

    Re: System Tray Application

    I just got the icon to stay. However, I'm still clueless about capturing messages like WM_RBUTTONDOWN and displaying a menu for it.
  4. Replies
    10
    Views
    13,104

    Re: System Tray Application

    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.
    ...
  5. Replies
    10
    Views
    13,104

    System Tray Application

    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....
  6. Re: Object serialization problem: opening and reading a saved object.

    I fixed it. The CFile::modeCreate was causing the problem all along. Thanks very much, you've been very helpful!
  7. Re: Object serialization problem: opening and reading a saved object.

    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.
  8. Re: Object serialization problem: opening and reading a saved object.

    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 ::...
  9. Object serialization problem: opening and reading a saved object.

    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);
  10. Replies
    4
    Views
    6,818

    Re: VC++ File Handling for CString.

    Thanks a lot! I think i can close this thread now. I got all the information i needed. Thanks again.
  11. Replies
    4
    Views
    6,818

    Re: VC++ File Handling for CString.

    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...
  12. Replies
    4
    Views
    6,818

    VC++ File Handling for CString.

    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...
  13. Re: "Fixing down" a CButton or CEdit control.

    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.)...
  14. Re: "Fixing down" a CButton or CEdit control.

    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...
  15. Re: "Fixing down" a CButton or CEdit control.

    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.
  16. "Fixing down" a CButton or CEdit control.

    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...
  17. Replies
    1
    Views
    1,076

    Good MFC AppWizard

    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
  18. Re: Recording a particular "View" or "Area" during scrolling.

    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...
  19. Re: Recording a particular "View" or "Area" during scrolling.

    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?
  20. Recording a particular "View" or "Area" during scrolling.

    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...
  21. Re: CRect.PtInRect(point) problem on scrolling.

    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?
  22. Re: CRect.PtInRect(point) problem on scrolling.

    I had hoped that perhaps this was a standard problem.
  23. Re: CRect.PtInRect(point) problem on scrolling.

    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.
  24. Re: CRect.PtInRect(point) problem on scrolling.

    This is how I create the CEdit control:



    void CMainChildWnd :: OnLButtonDown(UINT nFlags, CPoint point)
    {
    GetClientRect(&cRectChildWnd);
    if(cNewEntry.crEditorAdd.PtInRect(point))
    { ...
  25. CRect.PtInRect(point) problem on scrolling.

    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...
Results 1 to 25 of 39
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured