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

C / C++ / MFC

 
QuestionMSDN Doc. bug or Control bug with ListView? Pin
Member 91813-Sep-02 11:24
Member 91813-Sep-02 11:24 
QuestionWhere is this ID coming from? Pin
ns13-Sep-02 11:02
ns13-Sep-02 11:02 
AnswerI got a compiler error doing this: Pin
ns13-Sep-02 11:07
ns13-Sep-02 11:07 
GeneralRe: I got a compiler error doing this: Pin
brianwelsch13-Sep-02 11:11
brianwelsch13-Sep-02 11:11 
GeneralRe: I got a compiler error doing this: Pin
Pavel Klocek13-Sep-02 11:27
Pavel Klocek13-Sep-02 11:27 
AnswerRe: Where is this ID coming from? Pin
Member 91813-Sep-02 11:30
Member 91813-Sep-02 11:30 
GeneralRe: Where is this ID coming from? Pin
ns13-Sep-02 11:38
ns13-Sep-02 11:38 
GeneralControl in status bar Pin
ns13-Sep-02 10:52
ns13-Sep-02 10:52 
I am creating my own class derived from CStatusBar, and will embed an imagecontrol in it, called m_THBImageRainbow. Now in my view class, I need to populate this box with an image through a function defined in the view class. If m_THBImageRainbow had been a view class member I'd have done:

ShowTHBImage(m_rainbow.GetImageSize(), m_rainbow.GetImagePointer(), &m_THBImageRainbow)


but my m_THBImageRainbow is a member of my new statusbar class. How will I access this?

Instead of &m_THBImageRainbow, what will it be?

I'll have MyStatusBar m_wndStatusBar; in the mainframe.

So to get at it in view :

((CMainFrame*)AfxGetMainWnd())->m_wndStatusBar.m_THBImageRainbow)
, but where will the & go?


<code>&</code>((CMainFrame*)AfxGetMainWnd())->m_wndStatusBar.m_THBImageRainbow)


or somewhere else in there?

Thanks,
ns
GeneralTable/Grid control Pin
Shay Harel13-Sep-02 10:44
Shay Harel13-Sep-02 10:44 
GeneralRe: Table/Grid control Pin
Pavel Klocek13-Sep-02 10:58
Pavel Klocek13-Sep-02 10:58 
GeneralRe: Table/Grid control Pin
Shay Harel16-Sep-02 3:18
Shay Harel16-Sep-02 3:18 
GeneralSaveing a project Pin
Steve Daly13-Sep-02 10:09
Steve Daly13-Sep-02 10:09 
GeneralRe: Saveing a project Pin
Pavel Klocek13-Sep-02 10:17
Pavel Klocek13-Sep-02 10:17 
GeneralRe: Saveing a project Pin
Ryan B.13-Sep-02 10:18
Ryan B.13-Sep-02 10:18 
GeneralFloating Document Interface (FDI) Pin
Ryan B.13-Sep-02 10:00
Ryan B.13-Sep-02 10:00 
GeneralVirtual Base Class & Constructor :: C++ Pin
valikac13-Sep-02 9:46
valikac13-Sep-02 9:46 
GeneralRe: Virtual Base Class & Constructor :: C++ Pin
Joaquín M López Muñoz13-Sep-02 9:57
Joaquín M López Muñoz13-Sep-02 9:57 
GeneralRe: Virtual Base Class & Constructor :: C++ Pin
valikac13-Sep-02 10:03
valikac13-Sep-02 10:03 
GeneralRe: Virtual Base Class & Constructor :: C++ Pin
Mike Nordell14-Sep-02 3:43
Mike Nordell14-Sep-02 3:43 
GeneralRe: Virtual Base Class & Constructor :: C++ Pin
valikac14-Sep-02 7:11
valikac14-Sep-02 7:11 
Generalprogrammatically creating new doc Pin
brianwelsch13-Sep-02 9:22
brianwelsch13-Sep-02 9:22 
GeneralRe: programmatically creating new doc Pin
Pavel Klocek13-Sep-02 9:56
Pavel Klocek13-Sep-02 9:56 
GeneralRe: programmatically creating new doc Pin
brianwelsch13-Sep-02 10:31
brianwelsch13-Sep-02 10:31 
GeneralRe: programmatically creating new doc Pin
Pavel Klocek13-Sep-02 10:52
Pavel Klocek13-Sep-02 10:52 
GeneralRe: programmatically creating new doc Pin
brianwelsch13-Sep-02 11:00
brianwelsch13-Sep-02 11:00 

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.