Click here to Skip to main content
16,009,057 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: C++ Template question Pin
CPallini6-May-09 22:55
mveCPallini6-May-09 22:55 
AnswerRe: C++ Template question Pin
rrrado6-May-09 23:13
rrrado6-May-09 23:13 
QuestionRe: C++ Template question Pin
CPallini6-May-09 23:19
mveCPallini6-May-09 23:19 
AnswerRe: C++ Template question Pin
rrrado6-May-09 23:37
rrrado6-May-09 23:37 
QuestionRe: C++ Template question Pin
CPallini6-May-09 23:49
mveCPallini6-May-09 23:49 
AnswerRe: C++ Template question Pin
Stuart Dootson6-May-09 23:49
professionalStuart Dootson6-May-09 23:49 
GeneralRe: C++ Template question Pin
rrrado7-May-09 0:42
rrrado7-May-09 0:42 
GeneralRe: C++ Template question Pin
Stuart Dootson7-May-09 0:46
professionalStuart Dootson7-May-09 0:46 
QuestionPlease help me!! it's urgent!! Pin
erenakman6-May-09 21:29
erenakman6-May-09 21:29 
AnswerRe: Please help me!! it's urgent!! Pin
Chandrasekharan P6-May-09 21:35
Chandrasekharan P6-May-09 21:35 
AnswerRe: Please help me!! it's urgent!! Pin
CPallini6-May-09 21:36
mveCPallini6-May-09 21:36 
AnswerRe: Please help me!! it's urgent!! Pin
_AnsHUMAN_ 6-May-09 21:44
_AnsHUMAN_ 6-May-09 21:44 
QuestionDirectX: "render to surface" or "render to device" (unmanaged) Pin
Pixinger776-May-09 21:01
Pixinger776-May-09 21:01 
AnswerRe: DirectX: "render to surface" or "render to device" (unmanaged) Pin
CPallini6-May-09 21:29
mveCPallini6-May-09 21:29 
AnswerRe: DirectX: "render to surface" or "render to device" (unmanaged) Pin
Stuart Dootson6-May-09 23:41
professionalStuart Dootson6-May-09 23:41 
Questionexception about 0x000006BA: RPC can not used (服务器不可用) Pin
fresh8888886-May-09 20:52
fresh8888886-May-09 20:52 
QuestionHow to realize the two aggressive color scale Pin
songhunhun6-May-09 20:47
songhunhun6-May-09 20:47 
AnswerRe: How to realize the two aggressive color scale Pin
KarstenK6-May-09 21:17
mveKarstenK6-May-09 21:17 
GeneralRe: How to realize the two aggressive color scale Pin
songhunhun6-May-09 22:18
songhunhun6-May-09 22:18 
QuestionRe: How to realize the two aggressive color scale Pin
CPallini6-May-09 21:27
mveCPallini6-May-09 21:27 
AnswerRe: How to realize the two aggressive color scale Pin
songhunhun6-May-09 22:15
songhunhun6-May-09 22:15 
AnswerRe: How to realize the two aggressive color scale Pin
Alan Balkany7-May-09 4:05
Alan Balkany7-May-09 4:05 
QuestionReg:scrolling views. Pin
coding_ram6-May-09 20:44
coding_ram6-May-09 20:44 
AnswerRe: Reg:scrolling views. Pin
Stuart Dootson6-May-09 23:37
professionalStuart Dootson6-May-09 23:37 
Yeah - you need to handle scrolling yourself. You need to:

  • When the view is resized, work out if it's big enough to display all the controls. If it is, then disable the scroll bars. If it isn't, then you need to use SetScrollInfo[^] to tell the scrollbars how to display themselves.
  • You need to add OnVScroll and/or OnHScroll handlers to deal with scroll messages. Use SetScrollPos[^] and ScrollWindow[^] to tell the view about the scrollbar parameters so it can work out which bit of the form should be displayed


Yeah, it's a pain. Microsoft do supply a CScrollView...but that inherits from CView, as does CFormView - and MFC is a bit backward when it comes to OOP.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

Questionerror C2143: syntax error : missing ',' before '*' Pin
subramanyeswari6-May-09 20:31
subramanyeswari6-May-09 20:31 

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.