Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » edit box problem Collapse All
Subject Author Date
Amit Mangal Jul 9, 2008 - 12:35 AM

cant move cursor to edit box in form view. I am sending you the code of the view class......when i creted edit box only focus of cursor on one edit box. and when i want to cursor on any other edit box by mouse click but that not work but keyboard tab works..........



// vvvView.h : interface of the CVvvView class




#if !defined(AFX_VVVVIEW_H__A5B72CBD_F03E_4A53_9ED2_4E192AA11EF9__INCLUDED_)

#define AFX_VVVVIEW_H__A5B72CBD_F03E_4A53_9ED2_4E192AA11EF9__INCLUDED_


#if _MSC_VER > 1000

#pragma once

#endif // _MSC_VER > 1000


class CVvvView : public CExtWA < CExtWS < CExtAFV < CFormView >  > >


protected: // create from serialization only






 enum{ IDD = IDD_VVV_FORM };

  // NOTE: the ClassWizard will add data members here



// Attributes


 CVvvDoc* GetDocument();


// Operations



// Overrides

 // ClassWizard generated virtual function overrides



 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);


 virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

 virtual void OnInitialUpdate(); // called first time after construct

 virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);

 virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);

 virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);

 virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);



// Implementation


 virtual ~CVvvView();

#ifdef _DEBUG

 virtual void AssertValid() const;

 virtual void Dump(CDumpContext& dc) const;





// Generated message map functions



  // NOTE - the ClassWizard will add and remove member functions here.

  //    DO NOT EDIT what you see in these blocks of generated code !





#ifndef _DEBUG  // debug version in vvvView.cpp

inline CVvvDoc* CVvvView::GetDocument()

   { return (CVvvDoc*)m_pDocument; }






// Microsoft Visual C++ will insert additional declarations immediately before the previous line.


#endif // !defined(AFX_VVVVIEW_H__A5B72CBD_F03E_4A53_9ED2_4E192AA11EF9__INCLUDED_)







// vvvView.cpp : implementation of the CVvvView class



#include "stdafx.h"

#include "vvv.h"


#include "vvvDoc.h"

#include "vvvView.h"


#ifdef _DEBUG

#define new DEBUG_NEW

#undef THIS_FILE

static char THIS_FILE[] = __FILE__;




// CVvvView






  // NOTE - the ClassWizard will add and remove mapping macros here.

  //    DO NOT EDIT what you see in these blocks of generated code!


 // Standard printing commands







// CVvvView construction/destruction



 : CExtWA < CExtWS < CExtAFV < CFormView >  > > ( CVvvView::IDD, ((CWnd *)NULL) )



  // NOTE: the ClassWizard will add member initialization here


 // TODO: add construction code here








void CVvvView::DoDataExchange(CDataExchange* pDX)




  // NOTE: the ClassWizard will add DDX and DDV calls here




BOOL CVvvView::PreCreateWindow(CREATESTRUCT& cs)


 // TODO: Modify the Window class or styles here by modifying

 //  the CREATESTRUCT cs


BOOL bPreCreated = CFormView::PreCreateWindow(cs); |= WS_CLIPSIBLINGS;

 return bPreCreated;



void CVvvView::OnInitialUpdate()








// CVvvView printing


BOOL CVvvView::OnPreparePrinting(CPrintInfo* pInfo)


 // default preparation

 return DoPreparePrinting(pInfo);



void CVvvView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)


 // TODO: add extra initialization before printing



void CVvvView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)


 // TODO: add cleanup after printing



void CVvvView::OnPrint(CDC* pDC, CPrintInfo* /*pInfo*/)


 // TODO: add customized printing code here




// CVvvView diagnostics


#ifdef _DEBUG

void CVvvView::AssertValid() const





void CVvvView::Dump(CDumpContext& dc) const





CVvvDoc* CVvvView::GetDocument() // non-debug version is inline



 return (CVvvDoc*)m_pDocument;


#endif //_DEBUG



// CVvvView message handlers

Technical Support Jul 9, 2008 - 2:05 PM

We guess edit controls are simply not painted correctly. You are specifying the WS_CLIPSIBLINGS style in PreCreateWindow(). Please also add WS_CLIPCHILDREN.