Click here to Skip to main content
15,885,782 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Pure Functions.. Pin
«_Superman_»20-Feb-09 1:10
professional«_Superman_»20-Feb-09 1:10 
GeneralRe: Pure Functions.. Pin
dehseth20-Feb-09 2:03
dehseth20-Feb-09 2:03 
AnswerRe: Pure Functions.. Pin
David Crow20-Feb-09 2:57
David Crow20-Feb-09 2:57 
QuestionProblem while horizontal scrolling Pin
Deepu Antony20-Feb-09 0:43
Deepu Antony20-Feb-09 0:43 
AnswerRe: Problem while horizontal scrolling Pin
Nishad S20-Feb-09 2:01
Nishad S20-Feb-09 2:01 
GeneralRe: Problem while horizontal scrolling Pin
Deepu Antony20-Feb-09 2:21
Deepu Antony20-Feb-09 2:21 
GeneralRe: Problem while horizontal scrolling Pin
Nishad S20-Feb-09 2:29
Nishad S20-Feb-09 2:29 
GeneralRe: Problem while horizontal scrolling Pin
Deepu Antony20-Feb-09 2:52
Deepu Antony20-Feb-09 2:52 
YAxis is created inside CGraphicsView as follwing


int CGraphicsView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CScrollView::OnCreate(lpCreateStruct) == -1)
return -1;



// TODO: Add your specialized creation code here
//CYAxis m_wndYAxis2;

if (!m_wndYAxis2.Create(0,0,WS_BORDER|WS_CHILD,
CRect(0,0,50,150), this, 0 ))
{
TRACE0("Failed to create Power Bar\n");
return -1; // fail to create
}



m_wndYAxis2.InitializeVariables();




return 0;
}

Positioning of YAxis is done inside OnDraw() function

void CGraphicsView::OnDraw(CDC* pDC)
{
//------------------- my code ---------------------------
CChildFrame* pChildFrame = NULL;
pChildFrame = (CChildFrame* )this->GetActiveWindow();
CSize size = GetTotalSize();

if ( pChildFrame!=NULL )
{
CRect rectFrm;
pChildFrame->GetWindowRect( rectFrm );

m_wndYAxis2.SetWindowPos(&wndTop, rectFrm.left, rectFrm.top,rectFrm.right/12, size.cy, SWP_SHOWWINDOW );
}
}

Please help me if u get any clue.
GeneralRe: Problem while horizontal scrolling Pin
Nishad S20-Feb-09 18:39
Nishad S20-Feb-09 18:39 
AnswerRe: Problem while horizontal scrolling Pin
Iain Clarke, Warrior Programmer20-Feb-09 4:26
Iain Clarke, Warrior Programmer20-Feb-09 4:26 
AnswerRe: Problem while horizontal scrolling [modified] Pin
Deepu Antony22-Feb-09 20:18
Deepu Antony22-Feb-09 20:18 
QuestionFix for boken class view in Visual Studio 2008 Pin
Desmond Mardle20-Feb-09 0:36
Desmond Mardle20-Feb-09 0:36 
AnswerRe: Fix for boken class view in Visual Studio 2008 Pin
Desmond Mardle20-Feb-09 1:34
Desmond Mardle20-Feb-09 1:34 
QuestionDynamic programming Pin
rnsk_for_u20-Feb-09 0:13
rnsk_for_u20-Feb-09 0:13 
AnswerRe: Dynamic programming Pin
CPallini20-Feb-09 0:33
mveCPallini20-Feb-09 0:33 
AnswerRe: Dynamic programming Pin
Nishad S20-Feb-09 0:36
Nishad S20-Feb-09 0:36 
AnswerRe: Dynamic programming Pin
David Crow20-Feb-09 2:58
David Crow20-Feb-09 2:58 
AnswerRe: Dynamic programming Pin
Stuart Dootson20-Feb-09 3:05
professionalStuart Dootson20-Feb-09 3:05 
AnswerNothing to see here, move along Pin
led mike20-Feb-09 4:27
led mike20-Feb-09 4:27 
QuestionHow to read a complete row. Pin
VC_RYK20-Feb-09 0:08
VC_RYK20-Feb-09 0:08 
AnswerRe: How to read a complete row. Pin
CPallini20-Feb-09 0:26
mveCPallini20-Feb-09 0:26 
QuestionAbout uses of RDLC in VC++.net 2005 Pin
ddgalande20-Feb-09 0:01
ddgalande20-Feb-09 0:01 
QuestionSerialize a variable length structure Pin
hatemtaleb19-Feb-09 23:30
hatemtaleb19-Feb-09 23:30 
AnswerRe: Serialize a variable length structure Pin
«_Superman_»19-Feb-09 23:35
professional«_Superman_»19-Feb-09 23:35 
AnswerRe: Serialize a variable length structure Pin
Stuart Dootson20-Feb-09 2:34
professionalStuart Dootson20-Feb-09 2:34 

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.