Click here to Skip to main content
16,004,833 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralCan't write to multidimension DataSet Pin
MAW303-Dec-07 15:20
MAW303-Dec-07 15:20 
GeneralReceiving a NullRefException when invoking from a thread Pin
Member 38482693-Dec-07 14:19
Member 38482693-Dec-07 14:19 
Questionhow to search a name in a file in torbo c Pin
maryam_s30-Nov-07 17:33
maryam_s30-Nov-07 17:33 
AnswerRe: how to search a name in a file in torbo c Pin
Christian Graus30-Nov-07 17:52
protectorChristian Graus30-Nov-07 17:52 
AnswerRe: how to search a name in a file in torbo c Pin
Paul Conrad1-Dec-07 9:42
professionalPaul Conrad1-Dec-07 9:42 
Questionusing MFC Extension UI dll in .NET Pin
kushu29-Nov-07 19:40
kushu29-Nov-07 19:40 
AnswerRe: using MFC Extension UI dll in .NET Pin
led mike30-Nov-07 4:17
led mike30-Nov-07 4:17 
QuestionRe: using MFC Extension UI dll in .NET Pin
kushu5-Dec-07 18:11
kushu5-Dec-07 18:11 
Hi Mike,
Thanks for your early response.I am sending you the code for my class that needs to be used in .NET .I need to use this control CSizingControlBar in my Winform. CSizingControlBar is derived from MFC class CControlBar.I am migrating an application from MFC to .NET, there are few controls which require a lot of rewrite effort.Hence we wish to reuse the in .NET.It would be a grest help if you could provide with some feasible solution.
You could see one of my classe below.
Thanks

#ifndef baseCSizingControlBar
#define baseCSizingControlBar CControlBar
#endif

class CSizingControlBar;
typedef CTypedPtrArray <CPtrArray, CSizingControlBar*> CSCBArray;

#include "DsGUIExtClass.h"

class DSGUI_EXT_CLASS CSizingControlBar : public baseCSizingControlBar
{
DECLARE_DYNAMIC(CSizingControlBar);

// Construction
protected:
CSizingControlBar();

public:
virtual BOOL Create(LPCTSTR lpszWindowName, CWnd* pParentWnd,
CSize sizeDefault, BOOL bHasGripper, UINT nID,
DWORD dwStyle = WS_CHILD | WS_VISIBLE | CBRS_TOP);

// Attributes
public:
CSize m_szHorz;
CSize m_szVert;
CSize m_szFloat;
const BOOL IsFloating() const;
const BOOL IsHorzDocked() const;
const BOOL IsVertDocked() const;
const BOOL IsSideTracking() const;
// Operations
public:
virtual void LoadState(LPCTSTR lpszProfileName);
virtual void SaveState(LPCTSTR lpszProfileName);
static void GlobalLoadState(LPCTSTR lpszProfileName);
static void GlobalSaveState(LPCTSTR lpszProfileName);

// Overridables
virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler);

// Overrides
public:
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSizingControlBar)
public:
virtual CSize CalcFixedLayout(BOOL bStretch, BOOL bHorz);
virtual CSize CalcDynamicLayout(int nLength, DWORD dwMode);
virtual BOOL DestroyWindow();
//}}AFX_VIRTUAL

// Implementation
public:
virtual ~CSizingControlBar();

protected:
// implementation helpers
UINT GetEdgeHTCode(int nEdge);
BOOL GetEdgeRect(CRect rcWnd, UINT nHitTest, CRect& rcEdge);
virtual void StartTracking(UINT nHitTest);
virtual void StopTracking();
virtual void OnTrackUpdateSize(CPoint& point);
virtual void OnTrackInvertTracker();
virtual void NcPaintGripper(CDC* pDC, CRect rcClient);

virtual void AlignControlBars();
const int FindSizingBar(CControlBar* pBar) const;
void GetRowInfo(int& nFirst, int& nLast, int& nThis);
void GetRowSizingBars(CSCBArray& arrSCBars);
BOOL NegociateSpace(int nLengthAvail, BOOL bHorz);

protected:
static CSCBArray m_arrBars;
DWORD m_dwSCBStyle;
UINT m_htEdge;
CSize m_szMin;
CSize m_szMinT;
CSize m_szMaxT;
CSize m_szOld;
CPoint m_ptOld;
BOOL m_bTracking;
BOOL m_bKeepSize;
BOOL m_bParentSizing;
BOOL m_bDragShowContent;
UINT m_nDockBarID;
int m_cxEdge;
int m_cyGripper;

CSCBButton m_biHide;

// Generated message map functions
protected:
//{{AFX_MSG(CSizingControlBar)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnNcPaint();
afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp);
afx_msg LRESULT OnNcHitTest(CPoint point);
afx_msg void OnCaptureChanged(CWnd *pWnd);
afx_msg void OnSettingChange(UINT uFlags, LPCTSTR lpszSection);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnNcLButtonUp(UINT nHitTest, CPoint point);
afx_msg void OnWindowPosChanging(WINDOWPOS FAR* lpwndpos);
afx_msg void OnPaint();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
QuestionConvert Binary to Hex Code? Pin
spalanivel29-Nov-07 0:55
spalanivel29-Nov-07 0:55 
AnswerRe: Convert Binary to Hex Code? Pin
Christian Graus30-Nov-07 18:40
protectorChristian Graus30-Nov-07 18:40 
Questionhow to get object name Pin
K. Sant.28-Nov-07 23:07
K. Sant.28-Nov-07 23:07 
AnswerRe: how to get object name Pin
Luc Pattyn28-Nov-07 23:51
sitebuilderLuc Pattyn28-Nov-07 23:51 
Questionhtml to .csv Pin
Tom Paronis28-Nov-07 11:32
Tom Paronis28-Nov-07 11:32 
AnswerRe: html to .csv Pin
Christian Graus28-Nov-07 15:12
protectorChristian Graus28-Nov-07 15:12 
GeneralRe: html to .csv Pin
Tom Paronis28-Nov-07 15:20
Tom Paronis28-Nov-07 15:20 
GeneralRe: html to .csv Pin
Christian Graus29-Nov-07 0:07
protectorChristian Graus29-Nov-07 0:07 
QuestionProblem with recv() function in winsock.h header file Pin
Raghavendra Pise27-Nov-07 21:13
Raghavendra Pise27-Nov-07 21:13 
AnswerRe: Problem with recv() function in winsock.h header file Pin
Christian Graus28-Nov-07 0:36
protectorChristian Graus28-Nov-07 0:36 
QuestionUsing boost test Pin
monsieur_jj26-Nov-07 20:56
monsieur_jj26-Nov-07 20:56 
AnswerRe: Using boost test Pin
Christian Graus26-Nov-07 22:24
protectorChristian Graus26-Nov-07 22:24 
GeneralRe: Using boost test Pin
monsieur_jj27-Nov-07 13:33
monsieur_jj27-Nov-07 13:33 
GeneralRe: Using boost test Pin
Christian Graus28-Nov-07 0:36
protectorChristian Graus28-Nov-07 0:36 
GeneralRe: Using boost test Pin
monsieur_jj28-Nov-07 14:44
monsieur_jj28-Nov-07 14:44 
Questioncan anybody explain me how the size of an empty class is 1byte Pin
philiptabraham26-Nov-07 20:14
philiptabraham26-Nov-07 20:14 
AnswerRe: can anybody explain me how the size of an empty class is 1byte Pin
Christian Graus26-Nov-07 22:41
protectorChristian Graus26-Nov-07 22:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.