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 8, 2008 - 5:09 AM


hi All,

I have created a form view derived from CExtWA < CExtWS < CExtAFV < CFormView >  > >  i have created four edit boxes on that form view dialog.problem is that cursor come on one edit box when i click on any of the three edit boxes cursor is still on first edit box if i use keyboard tab key then i can move the cursor to any of the edit box. please any one tell me how can i move cursor on any of the edit box by clicking on edit box. key board tab key is working fine with tab key cursor move to edit box .but why mouse is not working.

I am using prof-uis freeware version .



Many thnaks in advance.


Amit Mangal


Amit Mangal Jul 9, 2008 - 12:29 AM

// 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 8, 2008 - 8:25 AM

Could you send the source code of your form view class to the support mail box at this web site?