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

Search:

Type: Posts; User: cbpetro

Page 1 of 7 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    837

    Re: CTabView - CView's HWND is NULL

    Correct, but when I use the default AddView I never have the HWND of each CView, unless I call OnActivateView or something as I am not use the doc/view architecture. If I use the custom AddView, I...
  2. Replies
    11
    Views
    837

    Re: CTabView - CView's HWND is NULL

    The AddView code that Igor provided, I had to change my AddView call from...


    AddView (RUNTIME_CLASS (CView1), _T("Simple"), 100);

    to...

    AddView (RUNTIME_CLASS (CView1),...
  3. Replies
    11
    Views
    837

    Re: CTabView - CView's HWND is NULL

    Got it, I added the function to my CMyTabView class and now I have the HWND.

    Thanks
  4. Replies
    11
    Views
    837

    Re: CTabView - CView's HWND is NULL

    Thanks Igor, that makes sense. Where does that code come from?
  5. Replies
    11
    Views
    837

    Re: CTabView - CView's HWND is NULL

    I have a clistctrl on the view that I want to update from a database. The database updated the view before it is displayed. So I want the view to have an HWND so I can access its functions.
  6. Replies
    11
    Views
    837

    CTabView - CView's HWND is NULL

    I'm using the Feature Pack CTabView, and I noticed that when the view is added using AddView with the following code CView's HWND is NULL when I try and access each of the CView1,CView2, etc.


    ...
  7. Re: MDI Switch between tabbed and cascaded views

    It was just too easy...

    EnableMDITabbedGroups is what I was looking for.
  8. MDI Switch between tabbed and cascaded views

    Essentially I have an MDI that I want to be able to switch between having all my views tabbed when one is maximized and having all my views cascaded or tiled to their previous sizes. The MFC app...
  9. Replies
    5
    Views
    1,263

    Re: MDI CTabView

    You were right get the CView1's parent which is the CMFCTabCtrl and then get the CMFCTabCtrl's parent which is the CTabView. Solved.




    CMyTabView* CMyTabView::GetView()
    {
    CMDIChildWnd *...
  10. Replies
    5
    Views
    1,263

    Re: MDI CTabView

    Hmm, good point. I'm using a static function in CMyTabView...



    class CMyTabView : public CTabView
    {
    public:
    ...
    ...
    virtual void OnInitialUpdate();
  11. Replies
    5
    Views
    1,263

    Re: MDI CTabView

    CView1, CView2... are not members of CMyTabView, they are added as tabs with...



    int CMyTabView::OnCreate(LPCREATESTRUCT lpCreateStruct)
    {
    if (CTabView::OnCreate(lpCreateStruct) == -1)
    ...
  12. Replies
    5
    Views
    1,263

    [RESOLVED] MDI CTabView

    I have an MDI app with a CTabView that has 3 CView's (CView1, CView2, CView3) added as individual tabs...



    CMultiDocTemplate* pDocTemplate;
    pDocTemplate = new CMultiDocTemplate(...
  13. Replies
    18
    Views
    20,147

    Re: pointer to memory at offset and length

    Thanks, I understand now. Your example is code is very helpful to clarify the point ...

    "You don't return a 'block of memory'. You return a pointer to a particular memory location which the...
  14. Replies
    18
    Views
    20,147

    Re: pointer to memory at offset and length

    I change length to offset because that appears to be confusing people.

    Like I said in my original post I've never worked with memory at this level and I asked if what I'm doing is even possible. ...
  15. Replies
    18
    Views
    20,147

    Re: pointer to memory at offset and length

    m_lpData would not point to memory at any particular location but would point to a particular block of memory from which I want to get a sub-block so using your data...



    // using your data...
  16. Replies
    18
    Views
    20,147

    Re: pointer to memory at offset and length

    LPVOID m_lpData;

    LPVOID GetMemory(DWORD pos, DWORD offset)
    {
    BYTE* buffer = (BYTE*)m_lpData;
    buffer += pos;

    // how to return block of the memory an offset from start position +pos ?
    ...
  17. Replies
    18
    Views
    20,147

    Re: pointer to memory at offset and length

    Let's say my memory; m_lpData, points to an int + 2 doubles + 100 structs of sum POD type

    I want a function to return a pointer to the memory of 100 structs for instance

    so offset would be...
  18. Replies
    18
    Views
    20,147

    Re: pointer to memory at offset and length

    Yeah, I considered that but I my question is related to parsing memory not to the mapping which is OS related.

    I have the memory, how do I get pointer to a portion of that?
  19. Replies
    18
    Views
    20,147

    pointer to memory at offset and length

    I'm working with memory mapped files and I have a block of memory that I've mapped to.

    I want to write a function that returns a pointer to a portion of the mapped memory at an offset and length...
  20. Thread: Stop a Thread

    by cbpetro
    Replies
    10
    Views
    736

    Re: Stop a Thread

    Mike,

    When you use the boolean to stop the thread, the thread is only stopped. The m_pThread is still a pointer to CWinThread. It seems to me, there may be three conditions you may want to...
  21. Thread: Stop a Thread

    by cbpetro
    Replies
    10
    Views
    736

    Re: Stop a Thread

    Mike,

    Thanks for your help, I'm starting to understand. I have one follow up question that maybe you or someone else can help with. I used AfxEndThread in the ThreadFunc because MSDN recommends...
  22. Thread: Stop a Thread

    by cbpetro
    Replies
    10
    Views
    736

    Stop a Thread

    How do I stop a thread? I'm using ::TerminateThread within this code and the thread keeps running. Is this the correct procedure? Thanks for any help.



    void CPageTwo::OnBnClickedButTest()
    {...
  23. Re: Read Text File - first line has extra char

    Yes that did it. The file was exported from MSSQL and that was the problem.

    Thanks.
  24. Read Text File - first line has extra char

    This should be a trivial excersize, but for some reason I'm getting a problem
    when I read a text file. I'm reading a list of strings in text file, with one string per line. The first line has...
  25. Replies
    0
    Views
    298

    atl propertypage with custom control

    I have a WTL custom control that a I place on a ATL property page. The control is made up of a ListBox and Button that when pressed displays a popup window. I subclass the listbox in the dialog's...
Results 1 to 25 of 158
Page 1 of 7 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center