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

C / C++ / MFC

 
GeneralRe: need help coverting a char* to a unsigned short* Pin
Tim Smith16-Apr-02 2:21
Tim Smith16-Apr-02 2:21 
GeneralRe: need help coverting a char* to a unsigned short* Pin
moliate16-Apr-02 2:36
moliate16-Apr-02 2:36 
GeneralRe: need help coverting a char* to a unsigned short* Pin
Le centriste16-Apr-02 3:22
Le centriste16-Apr-02 3:22 
GeneralRe: need help coverting a char* to a unsigned short* Pin
moliate16-Apr-02 4:22
moliate16-Apr-02 4:22 
GeneralRe: need help coverting a char* to a unsigned short* Pin
16-Apr-02 5:19
suss16-Apr-02 5:19 
Generalneed help coverting a char* to a unsigned short* Pin
15-Apr-02 17:06
suss15-Apr-02 17:06 
GeneralRe: need help coverting a char* to a unsigned short* Pin
Le centriste16-Apr-02 3:41
Le centriste16-Apr-02 3:41 
GeneralInitializing a CProgressCtrl Object Inside CDialog :: MFC Pin
valikac15-Apr-02 15:39
valikac15-Apr-02 15:39 
Hi.

I have a CDialog (modal) object. It serves as a progress dialog similar to the one that you see while waiting for EI to finish downloading. Inside the actual dialogbox is a CProgressCtrl object. Right now, the progress bar does not do anything. I tried initializing it like this:

m_MyProgressBar.SetRange(0, 100);
m_MyProgressBar.SetPos(0);

The program crashed when I add the code above. I did *not* create the object. The reason is I did not know the size of the object.

For example, this code comes from Prosise's book:

m_MyProgressBar.Create(WS_CHILD | WS_VISIBLE, rect, this, -);

I added a progressbar via Dialogbox Editor. I need to create the progressbar, but I do not know the actual rectangle of the progressbar I made using Dialogbox Editor.

How you to initialize a progressbar made using Dialog Editor?

Thanks,
Kuphryn
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
Diarrhio15-Apr-02 15:59
Diarrhio15-Apr-02 15:59 
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
valikac15-Apr-02 16:03
valikac15-Apr-02 16:03 
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
Diarrhio15-Apr-02 16:17
Diarrhio15-Apr-02 16:17 
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
valikac15-Apr-02 16:24
valikac15-Apr-02 16:24 
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
Diarrhio15-Apr-02 16:48
Diarrhio15-Apr-02 16:48 
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
valikac15-Apr-02 16:58
valikac15-Apr-02 16:58 
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
Diarrhio15-Apr-02 17:08
Diarrhio15-Apr-02 17:08 
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
valikac15-Apr-02 17:30
valikac15-Apr-02 17:30 
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
valikac15-Apr-02 18:04
valikac15-Apr-02 18:04 
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
Diarrhio15-Apr-02 18:50
Diarrhio15-Apr-02 18:50 
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
Diarrhio15-Apr-02 18:48
Diarrhio15-Apr-02 18:48 
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
valikac16-Apr-02 4:50
valikac16-Apr-02 4:50 
GeneralRe: Before or After Pin
valikac16-Apr-02 12:46
valikac16-Apr-02 12:46 
GeneralBitBlt problem Pin
Jack Handy15-Apr-02 15:26
Jack Handy15-Apr-02 15:26 
GeneralRe: BitBlt problem Pin
Paul M Watt15-Apr-02 18:51
mentorPaul M Watt15-Apr-02 18:51 
GeneralRe: BitBlt problem Pin
Jack Handy15-Apr-02 19:12
Jack Handy15-Apr-02 19:12 
GeneralRe: BitBlt problem Pin
Paul M Watt15-Apr-02 20:08
mentorPaul M Watt15-Apr-02 20:08 

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.