Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Creating buttons and CRect Pin
bcemick28-Feb-05 7:23
bcemick28-Feb-05 7:23 
GeneralRe: Creating buttons and CRect Pin
PJ Arends28-Feb-05 8:05
professionalPJ Arends28-Feb-05 8:05 
GeneralRe: Creating buttons and CRect Pin
bcemick28-Feb-05 8:29
bcemick28-Feb-05 8:29 
GeneralRe: Creating buttons and CRect Pin
PJ Arends28-Feb-05 9:57
professionalPJ Arends28-Feb-05 9:57 
GeneralRe: Creating buttons and CRect Pin
bcemick28-Feb-05 10:12
bcemick28-Feb-05 10:12 
GeneralRe: Creating buttons and CRect Pin
PJ Arends28-Feb-05 10:22
professionalPJ Arends28-Feb-05 10:22 
GeneralRe: Creating buttons and CRect Pin
PJ Arends28-Feb-05 10:29
professionalPJ Arends28-Feb-05 10:29 
GeneralRe: Creating buttons and CRect Pin
bcemick28-Feb-05 10:55
bcemick28-Feb-05 10:55 
PJ Arends wrote:
So there is no way that Create will return TRUE (1) if the HWND is NULL (0).

I know. That's what was so weird about all of this. I swear that's what was happening. I tried rebuild all and now it's returning a non-NULL handle; the handle is still invalid though.

I tried moving it into another function to see what would happen. I got hWnd handles, but none of them are valid handles according to Spy++. It is still returning 1 (success).

The only thing I can think of is that the button is being created, but it's being destroyed before it can be added to the property sheet (if that makes sense - it sounds better in my head). It's either that or I am missing something so obvious that it would've killed me if it was a snake.

One way or another, I'm going to make this work.

Any help is greatly appreciated (and you've been great so far). If nothing else, it eliminates a possibility.
GeneralRe: Creating buttons and CRect Pin
PJ Arends28-Feb-05 11:14
professionalPJ Arends28-Feb-05 11:14 
GeneralRe: Creating buttons and CRect Pin
bcemick28-Feb-05 11:28
bcemick28-Feb-05 11:28 
GeneralRe: Creating buttons and CRect Pin
PJ Arends28-Feb-05 11:39
professionalPJ Arends28-Feb-05 11:39 
GeneralRe: Creating buttons and CRect Pin
bcemick1-Mar-05 3:06
bcemick1-Mar-05 3:06 
GeneralRe: Hidocuments based application Pin
PJ Arends28-Feb-05 10:15
professionalPJ Arends28-Feb-05 10:15 
QuestionRuntime Error! - pure virtual function call? Pin
Antony M Kancidrowski28-Feb-05 2:59
Antony M Kancidrowski28-Feb-05 2:59 
AnswerRe: Runtime Error! - pure virtual function call? Pin
Jay Carter28-Feb-05 3:13
Jay Carter28-Feb-05 3:13 
GeneralRe: Runtime Error! - pure virtual function call? Pin
Antony M Kancidrowski28-Feb-05 3:29
Antony M Kancidrowski28-Feb-05 3:29 
GeneralToolbars with Dropdown Menus Pin
Jay Carter28-Feb-05 2:33
Jay Carter28-Feb-05 2:33 
GeneralHide the selection in CTreeCtrl (the blue color) Pin
anderslundsgard28-Feb-05 1:56
anderslundsgard28-Feb-05 1:56 
Generaldeveloping Server,, protocol independent! Pin
rdhamija28-Feb-05 1:56
rdhamija28-Feb-05 1:56 
GeneralRe: developing Server,, protocol independent! Pin
Tom Wright28-Feb-05 10:36
Tom Wright28-Feb-05 10:36 
QuestionHelp me to create connection in My Network Places? Pin
Chuaaico28-Feb-05 0:50
Chuaaico28-Feb-05 0:50 
AnswerRe: Help me to create connection in My Network Places? Pin
David Crow28-Feb-05 2:51
David Crow28-Feb-05 2:51 
GeneralRe: Help me to create connection in My Network Places? Pin
Chuaaico6-Mar-05 18:08
Chuaaico6-Mar-05 18:08 
GeneralRe: Help me to create connection in My Network Places? Pin
David Crow7-Mar-05 3:17
David Crow7-Mar-05 3:17 
GeneralRe: Help me to create connection in My Network Places? Pin
Chuaaico7-Mar-05 21:00
Chuaaico7-Mar-05 21: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.