Click here to Skip to main content
15,895,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Urgent - How do i programatically display submenu items window Pin
giftsana12-Apr-06 15:51
giftsana12-Apr-06 15:51 
Questionhyperlink copyright name Pin
Ștefan-Mihai MOGA11-Apr-06 23:13
professionalȘtefan-Mihai MOGA11-Apr-06 23:13 
AnswerRe: hyperlink copyright name Pin
Ravi Bhavnani12-Apr-06 5:08
professionalRavi Bhavnani12-Apr-06 5:08 
QuestionAudio drivers: hook up audio streams Pin
imsaady11-Apr-06 23:09
imsaady11-Apr-06 23:09 
AnswerRe: Audio drivers: hook up audio streams Pin
kakan12-Apr-06 0:11
professionalkakan12-Apr-06 0:11 
GeneralRe: Audio drivers: hook up audio streams Pin
imsaady12-Apr-06 6:33
imsaady12-Apr-06 6:33 
QuestionProblem with CToolTipCtrl::AddTool Pin
Chioo11-Apr-06 23:08
Chioo11-Apr-06 23:08 
QuestionHow to add scrollbar on a view in SDI Pin
zhonglin.liang11-Apr-06 23:06
zhonglin.liang11-Apr-06 23:06 
I have troble in:
how to create scrollbar by the client rect?
how to adapt the scrollbar when the window's size changed?

my code:

int CDNAView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CView::OnCreate(lpCreateStruct) == -1)
return -1;

// TODO: Add your specialized creation code here
CRect crect;
GetClientRect(&crect);

VERIFY(m_scrollBar.Create(
SBS_VERT | SBS_RIGHTALIGN | WS_CHILD , CRect(0,0,756,429),this,10));// how to create scrollbar by the client rect?


m_scrollBar.ShowScrollBar();

return 0;
}
void CDNAView::OnSize(UINT nType, int cx, int cy)
{
CView::OnSize(nType, cx, cy);

// TODO: Add your message handler code here
int lt,tp,rt,btm;
CRect rect;
GetClientRect(&rect);

lt = rect.left;
tp = rect.top;
rt = rect.right;
btm = rect.bottom;
m_scrollBar.MoveWindow(rt,tp,5,btm);// how to adapt the scrollbar when the window's size changed?
}

how to resove this question?

your kind reply will be appreciated greatly.

AnswerRe: How to add scrollbar on a view in SDI Pin
Hamid_RT12-Apr-06 0:56
Hamid_RT12-Apr-06 0:56 
GeneralRe: How to add scrollbar on a view in SDI Pin
zhonglin.liang12-Apr-06 1:47
zhonglin.liang12-Apr-06 1:47 
GeneralRe: How to add scrollbar on a view in SDI Pin
Hamid_RT12-Apr-06 2:27
Hamid_RT12-Apr-06 2:27 
Question[Message Deleted] Pin
imdx8011-Apr-06 22:59
imdx8011-Apr-06 22:59 
AnswerRe: Read / Write Locking, Pin
Ștefan-Mihai MOGA12-Apr-06 0:19
professionalȘtefan-Mihai MOGA12-Apr-06 0:19 
Questionlinker error Pin
vivek.s.vivek11-Apr-06 22:45
vivek.s.vivek11-Apr-06 22:45 
AnswerRe: linker error Pin
prasad_som11-Apr-06 22:52
prasad_som11-Apr-06 22:52 
AnswerRe: linker error Pin
Naveen11-Apr-06 23:01
Naveen11-Apr-06 23:01 
QuestionCopying one window & keep painting it.... Pin
chasetoys11-Apr-06 22:31
chasetoys11-Apr-06 22:31 
QuestionHow to give scrollbars to MDI main window? Pin
Sarvan AL11-Apr-06 21:44
Sarvan AL11-Apr-06 21:44 
QuestionEnable/Disable the MenuItems in a Menu Pin
kiran janaswamy11-Apr-06 21:19
kiran janaswamy11-Apr-06 21:19 
AnswerRe: Enable/Disable the MenuItems in a Menu Pin
Hamid_RT11-Apr-06 21:33
Hamid_RT11-Apr-06 21:33 
AnswerRe: Enable/Disable the MenuItems in a Menu Pin
Michael Dunn11-Apr-06 21:36
sitebuilderMichael Dunn11-Apr-06 21:36 
QuestionBest Debug Tools? Pin
Peter Weyzen11-Apr-06 21:16
Peter Weyzen11-Apr-06 21:16 
AnswerRe: Best Debug Tools? Pin
Ștefan-Mihai MOGA11-Apr-06 21:45
professionalȘtefan-Mihai MOGA11-Apr-06 21:45 
QuestionHow to disable the Enter key? Pin
Aryan S11-Apr-06 21:09
Aryan S11-Apr-06 21:09 
AnswerRe: How to disable the Enter key? Pin
Peter Weyzen11-Apr-06 21:17
Peter Weyzen11-Apr-06 21:17 

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.