Solved

how to draw??

Posted on 1998-10-11
3
239 Views
Last Modified: 2013-11-20
how to draw in csplitterwnd...? derived from ceditview...
i want to draw a bitmap in one of the views

how??
0
Comment
Question by:eXcalibur
3 Comments
 

Expert Comment

by:ashishp092098
ID: 1323179
Forget the splitter for the time being...
Why would you derive from CEditView if you want to draw a bitmap in there? You should be deriving from CView and get your bitmap stuff working for it first. Once you have done that, same View class can also be used thru a splitter effortlessly.
0
 

Author Comment

by:eXcalibur
ID: 1323180
i dun quite get u....
but i tried deriving from a CView, it works, so now how to turn the other pne into a text editor?
how can i get the handle to individual panes??
0
 
LVL 1

Accepted Solution

by:
VAM345 earned 20 total points
ID: 1323181
BOOL CMyChildFrame::OnCreateClient(LPCREATESTRUCT, CCreateContext* pContext)
{
      if (!m_wndSplitter.CreateStatic(this, 1, 2))
      {
            TRACE0("Failed to CreateStaticSplitter\n");
            return FALSE;
      }

      // add the second splitter pane - an input view in column 1
      if (!m_wndSplitter.CreateView(0, 1,
            pContext->m_pNewViewClass, CSize(0, 0), pContext))
      {
            TRACE0("Failed to create first pane\n");
            return FALSE;
      }

      // add the first splitter pane - the default view in column 0
      if (!m_wndSplitter.CreateView(0, 0,
            RUNTIME_CLASS(CMyView), CSize(180, 50), pContext))
      {
            TRACE0("Failed to create second pane\n");
            return FALSE;
      }

      // activate the input view
      SetActiveView((CView*)m_wndSplitter.GetPane(0,1));
      
      return TRUE;
}

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
if loop in java 3 160
fizzArray2 challenge 1 101
FizzBuzz challenge 9 83
Path of Workbook 3 86
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question