Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: error C2143: syntax error : missing ',' before '*' Pin
Stuart Dootson6-May-09 20:43
professionalStuart Dootson6-May-09 20:43 
GeneralRe: error C2143: syntax error : missing ',' before '*' Pin
subramanyeswari6-May-09 20:52
subramanyeswari6-May-09 20:52 
GeneralRe: error C2143: syntax error : missing ',' before '*' Pin
Stuart Dootson6-May-09 23:00
professionalStuart Dootson6-May-09 23:00 
AnswerRe: error C2143: syntax error : missing ',' before '*' Pin
KarstenK6-May-09 21:21
mveKarstenK6-May-09 21:21 
AnswerRe: error C2143: syntax error : missing ',' before '*' Pin
Member 802752223-Jun-11 5:04
Member 802752223-Jun-11 5:04 
QuestionHow use win32 dll in c# Pin
ashish8patil6-May-09 20:25
ashish8patil6-May-09 20:25 
AnswerRe: How use win32 dll in c# Pin
Cedric Moonen6-May-09 20:32
Cedric Moonen6-May-09 20:32 
GeneralRe: How use win32 dll in c# Pin
ashish8patil6-May-09 20:45
ashish8patil6-May-09 20:45 
AnswerRe: How use win32 dll in c# Pin
_AnsHUMAN_ 6-May-09 21:54
_AnsHUMAN_ 6-May-09 21:54 
QuestionAny way to know the physical sectors that a file occupies? Pin
maishuiking6-May-09 20:20
maishuiking6-May-09 20:20 
Questionhow to maintain version information to project Pin
hemlat6-May-09 20:03
hemlat6-May-09 20:03 
QuestionRe: how to maintain version information to project Pin
Madhu Nair6-May-09 20:21
Madhu Nair6-May-09 20:21 
AnswerRe: how to maintain version information to project Pin
Chandrasekharan P6-May-09 20:33
Chandrasekharan P6-May-09 20:33 
GeneralRe: how to maintain version information to project Pin
hemlat6-May-09 21:13
hemlat6-May-09 21:13 
AnswerRe: how to maintain version information to project Pin
Stuart Dootson6-May-09 20:36
professionalStuart Dootson6-May-09 20:36 
GeneralRe: how to maintain version information to project Pin
hemlat6-May-09 21:10
hemlat6-May-09 21:10 

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.