Click here to Skip to main content
15,903,362 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionHow do I call the choose folder dialog Pin
Jose Cruz1-Oct-02 5:18
Jose Cruz1-Oct-02 5:18 
AnswerRe: How do I call the choose folder dialog Pin
Michael Dunn1-Oct-02 15:12
sitebuilderMichael Dunn1-Oct-02 15:12 
GeneralRe: How do I call the choose folder dialog Pin
Jose Cruz2-Oct-02 3:47
Jose Cruz2-Oct-02 3:47 
GeneralRe: How do I call the choose folder dialog Pin
Gary R. Wheeler12-Oct-02 2:04
Gary R. Wheeler12-Oct-02 2:04 
GeneralCWindow::IsWindow // testing the member hWnd Pin
Phil.Benson1-Oct-02 3:33
professionalPhil.Benson1-Oct-02 3:33 
GeneralRe: CWindow::IsWindow // testing the member hWnd Pin
Joaquín M López Muñoz1-Oct-02 10:11
Joaquín M López Muñoz1-Oct-02 10:11 
GeneralRe: CWindow::IsWindow // testing the member hWnd Pin
Phil.Benson1-Oct-02 21:43
professionalPhil.Benson1-Oct-02 21:43 
GeneralRe: CWindow::IsWindow // testing the member hWnd Pin
Gary R. Wheeler12-Oct-02 2:12
Gary R. Wheeler12-Oct-02 2:12 
The docs say that ::IsWindow() returns non-zero if the argument is a valid window. In one case, the O/S returns TRUE. In another case, the O/S is returning (possibly) the window handle, or something else, that is non-zero.

As a rule, the following:
BOOL condition = ::Windows_API_Call(...);
...
if (condition) {
    ...
}

is preferable to
if (condition == TRUE) {
    ...
}

since the Windows API (where BOOL is defined) tends to play fast-and-loose with BOOL return values. Often, they define the return value of an API call as BOOL (which you assume has only two values, TRUE and FALSE), when it would be better to specify it as a DWORD. The return value in that case means one thing when it is non-zero, and something else when it is zero.

Gary R. Wheeler
QuestionHow to creat an Object from with a pointer Pin
Jose Cruz30-Sep-02 7:51
Jose Cruz30-Sep-02 7:51 
AnswerRe: How to creat an Object from with a pointer Pin
Paul M Watt30-Sep-02 9:57
mentorPaul M Watt30-Sep-02 9:57 
GeneralRe: How to creat an Object from with a pointer Pin
Jose Cruz1-Oct-02 3:43
Jose Cruz1-Oct-02 3:43 
GeneralCombo heigth problem Pin
Jose Cruz30-Sep-02 7:46
Jose Cruz30-Sep-02 7:46 
GeneralRe: Combo heigth problem Pin
Paul M Watt30-Sep-02 10:00
mentorPaul M Watt30-Sep-02 10:00 
GeneralRe: Combo heigth problem Pin
Jose Cruz1-Oct-02 3:51
Jose Cruz1-Oct-02 3:51 
GeneralRe: Combo heigth problem Pin
Ed Gadziemski1-Oct-02 4:06
professionalEd Gadziemski1-Oct-02 4:06 
GeneralRe: Combo heigth problem Pin
Jose Cruz1-Oct-02 5:16
Jose Cruz1-Oct-02 5:16 
QuestionSTL reference? Pin
User 988527-Sep-02 6:53
User 988527-Sep-02 6:53 
AnswerRe: STL reference? Pin
RedZenBird27-Sep-02 8:18
RedZenBird27-Sep-02 8:18 
Generalatl full control Pin
Anonymous23-Sep-02 18:05
Anonymous23-Sep-02 18:05 
GeneralRe: atl full control Pin
Todd Smith24-Sep-02 7:03
Todd Smith24-Sep-02 7:03 
GeneralRe: atl full control Pin
Jörgen Sigvardsson3-Oct-02 14:28
Jörgen Sigvardsson3-Oct-02 14:28 
QuestionHow to do this properly with STL? Pin
Mark Tutt23-Sep-02 3:49
Mark Tutt23-Sep-02 3:49 
AnswerRe: How to do this properly with STL? Pin
Joao Vaz23-Sep-02 4:02
Joao Vaz23-Sep-02 4:02 
GeneralRe: How to do this properly with STL? Pin
Mark Tutt23-Sep-02 4:14
Mark Tutt23-Sep-02 4:14 
GeneralRe: How to do this properly with STL? Pin
Joao Vaz23-Sep-02 6:17
Joao Vaz23-Sep-02 6:17 

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.