Click here to Skip to main content
15,899,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Virtual inheritance Pin
Cedric Moonen22-Oct-07 2:50
Cedric Moonen22-Oct-07 2:50 
GeneralRe: Virtual inheritance Pin
George_George22-Oct-07 21:01
George_George22-Oct-07 21:01 
QuestionScrollWindowEx() does not show me dynamic created controls. Pin
chandu00422-Oct-07 1:47
chandu00422-Oct-07 1:47 
QuestionRe: ScrollWindowEx() does not show me dynamic created controls. Pin
Nelek22-Oct-07 2:12
protectorNelek22-Oct-07 2:12 
AnswerRe: ScrollWindowEx() does not show me dynamic created controls. Pin
chandu00422-Oct-07 2:30
chandu00422-Oct-07 2:30 
GeneralRe: ScrollWindowEx() does not show me dynamic created controls. Pin
Nelek22-Oct-07 2:36
protectorNelek22-Oct-07 2:36 
GeneralRe: ScrollWindowEx() does not show me dynamic created controls. Pin
chandu00422-Oct-07 3:30
chandu00422-Oct-07 3:30 
GeneralRe: ScrollWindowEx() does not show me dynamic created controls. Pin
Nelek22-Oct-07 3:48
protectorNelek22-Oct-07 3:48 
"for every scroll, weather up or down, i can move the header and footer to the same old positions.this will be my next try."

Consider difference between screen / workspace coordinates.

I have a CSCrollView as main view, and the bitmaps representing objects are placed according to scroll position. But there is a moment that I want to have a label always visible. I do it just so easy as:

CClientDC dc(this);             // The window to be drawn is this
CRect rectWnd;
CString szOnline = "ONLINE";
CPoint cpPoint;
CFont fontLabels;
fontLabels.CreatePointFont (640, "MS Sans Serif");

GetWindowRect (&rectWnd);

cpPoint.x = ((rectWnd.Width () - 300) / 2);
cpPoint.y = ((rectWnd.Height () - 100) / 2);

dc.SelectObject (&fontLabels);
dc.SetBkColor (RGB (0, 255, 0));
dc.TextOut (cpPoint.x, cpPoint.y, szOnline, szOnline.GetLength ());


I have the label always visible and centered on the screen. You can do something similar for the "fixed" controls.



Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

Help me to understand what I'm saying, and I'll explain it better to you

Wink | ;)

GeneralRe: ScrollWindowEx() does not show me dynamic created controls. Pin
chandu00422-Oct-07 23:56
chandu00422-Oct-07 23:56 
QuestionHow to know mouse has left the Tray Icon Pin
GauranG Shah22-Oct-07 1:23
GauranG Shah22-Oct-07 1:23 
QuestionRe: How to know mouse has left the Tray Icon Pin
David Crow22-Oct-07 3:41
David Crow22-Oct-07 3:41 
AnswerRe: How to know mouse has left the Tray Icon Pin
GauranG Shah22-Oct-07 4:01
GauranG Shah22-Oct-07 4:01 
QuestionList View bmp Pin
john563222-Oct-07 1:10
john563222-Oct-07 1:10 
AnswerRe: List View bmp Pin
Hamid_RT22-Oct-07 2:02
Hamid_RT22-Oct-07 2:02 
Question[SOLVED]how to capture ctrl+down arrow key. Pin
chandu00422-Oct-07 0:57
chandu00422-Oct-07 0:57 
AnswerRe: how to capture ctrl+down arrow key. Pin
baerten22-Oct-07 1:13
baerten22-Oct-07 1:13 
GeneralThanks.[SOLVED] Pin
chandu00422-Oct-07 1:31
chandu00422-Oct-07 1:31 
AnswerRe: how to capture ctrl+down arrow key. Pin
jhwurmbach22-Oct-07 1:18
jhwurmbach22-Oct-07 1:18 
GeneralRe: how to capture ctrl+down arrow key. Pin
chandu00422-Oct-07 1:35
chandu00422-Oct-07 1:35 
QuestionHelp for stdext::hash_map in VS2005! Pin
bosfan21-Oct-07 23:16
bosfan21-Oct-07 23:16 
AnswerRe: Help for stdext::hash_map in VS2005! [modified] Pin
jhwurmbach22-Oct-07 1:21
jhwurmbach22-Oct-07 1:21 
GeneralRe: Help for stdext::hash_map in VS2005! Pin
bosfan22-Oct-07 22:45
bosfan22-Oct-07 22:45 
GeneralRe: Help for stdext::hash_map in VS2005! Pin
jhwurmbach23-Oct-07 0:02
jhwurmbach23-Oct-07 0:02 
GeneralRe: Help for stdext::hash_map in VS2005! Pin
bosfan23-Oct-07 0:54
bosfan23-Oct-07 0:54 
GeneralRe: Help for stdext::hash_map in VS2005! Pin
jhwurmbach23-Oct-07 1:01
jhwurmbach23-Oct-07 1:01 

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.