Click here to Skip to main content
15,914,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Convert CStrings to Null-terminated? Pin
Dave Bryant10-Mar-03 12:34
Dave Bryant10-Mar-03 12:34 
AnswerRe: Convert CStrings to Null-terminated? Pin
Michael Dunn10-Mar-03 13:02
sitebuilderMichael Dunn10-Mar-03 13:02 
GeneralRe: Convert CStrings to Null-terminated? Pin
Nish Nishant10-Mar-03 13:40
sitebuilderNish Nishant10-Mar-03 13:40 
GeneralRe: Convert CStrings to Null-terminated? Pin
Michael Dunn10-Mar-03 14:43
sitebuilderMichael Dunn10-Mar-03 14:43 
QuestionHelp ?? Pointer to View from Doc? Pin
Obi-Wan-Kenobi10-Mar-03 12:27
Obi-Wan-Kenobi10-Mar-03 12:27 
AnswerRe: Help ?? Pointer to View from Doc? Pin
Dave Bryant10-Mar-03 12:37
Dave Bryant10-Mar-03 12:37 
GeneralRe: Help ?? Pointer to View from Doc? Pin
Obi-Wan-Kenobi10-Mar-03 12:50
Obi-Wan-Kenobi10-Mar-03 12:50 
GeneralRe: Help ?? Pointer to View from Doc? Pin
Dave Bryant10-Mar-03 12:57
Dave Bryant10-Mar-03 12:57 
Loooser wrote:
I was trying to do that inside a Doc ...
I m able to get a pointer to the view from the CMyApp
but not from CMyDoc..


Do you mean that the GetNextView( GetFirstViewPosition() ) method calls i mentionned above failed, or that you couldn't find a member pointer to the view (or a function like GetActiveView())?

Loooser wrote:
what Im trying to do is to to access the pointer to the "device context" of the MyView(CFormView) from MyDoc (CDocument) ...

Unless you are currently drawing the view, it probably has no associated device context. But you can create it easily enough by:

CClientDC dc( pView );

This creates a client DC - a device context that allows you to draw to the client area of the view.

Dave
GeneralRe: Help ?? Pointer to View from Doc? Pin
Obi-Wan-Kenobi10-Mar-03 13:02
Obi-Wan-Kenobi10-Mar-03 13:02 
GeneralRe: Help ?? Pointer to View from Doc? Pin
Dave Bryant10-Mar-03 13:05
Dave Bryant10-Mar-03 13:05 
GeneralRe: Help ?? Pointer to View from Doc? Pin
Obi-Wan-Kenobi10-Mar-03 13:14
Obi-Wan-Kenobi10-Mar-03 13:14 
GeneralRe: Help ?? Pointer to View from Doc? Pin
Brian Shifrin10-Mar-03 13:06
Brian Shifrin10-Mar-03 13:06 
GeneralRe: Help ?? Pointer to View from Doc? Pin
Brian Shifrin10-Mar-03 13:07
Brian Shifrin10-Mar-03 13:07 
GeneralRe: Help ?? Pointer to View from Doc? Pin
Obi-Wan-Kenobi10-Mar-03 13:17
Obi-Wan-Kenobi10-Mar-03 13:17 
GeneralRe: Help ?? Pointer to View from Doc? Pin
Dave Bryant10-Mar-03 13:19
Dave Bryant10-Mar-03 13:19 
AnswerRe: Help ?? Pointer to View from Doc? Pin
Jim A. Johnson10-Mar-03 15:21
Jim A. Johnson10-Mar-03 15:21 
GeneralRe: Help ?? Pointer to View from Doc? Pin
Obi-Wan-Kenobi10-Mar-03 17:54
Obi-Wan-Kenobi10-Mar-03 17:54 
GeneralRe: Help ?? Pointer to View from Doc? Pin
jhwurmbach10-Mar-03 20:43
jhwurmbach10-Mar-03 20:43 
Question'_OLD_IOSTREAMS_ARE_DEPRECATED' - How do I clear this warning?? Pin
IrishSonic10-Mar-03 11:45
IrishSonic10-Mar-03 11:45 
AnswerRe: '_OLD_IOSTREAMS_ARE_DEPRECATED' - How do I clear this warning?? Pin
Ernesto Perales Soto10-Mar-03 12:03
Ernesto Perales Soto10-Mar-03 12:03 
GeneralCScrollView with a lot of flickering Pin
djordj10-Mar-03 11:43
djordj10-Mar-03 11:43 
GeneralRe: CScrollView with a lot of flickering Pin
MAAK10-Mar-03 11:50
MAAK10-Mar-03 11:50 
GeneralRe: CScrollView with a lot of flickering Pin
73Zeppelin10-Mar-03 16:51
73Zeppelin10-Mar-03 16:51 
GeneralRe: CScrollView with a lot of flickering Pin
djordj10-Mar-03 21:19
djordj10-Mar-03 21:19 
GeneralRe: CScrollView with a lot of flickering Pin
MAAK10-Mar-03 21:40
MAAK10-Mar-03 21:40 

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.