Click here to Skip to main content
15,894,539 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Get only focus( text should not be selected ) on MDI child while opening dynamically Pin
Member 453851029-Apr-08 15:31
Member 453851029-Apr-08 15:31 
AnswerRe: Get only focus( text should not be selected ) on MDI child while opening dynamically Pin
Yusuf29-Apr-08 15:31
Yusuf29-Apr-08 15:31 
GeneralRe: Get only focus( text should not be selected ) on MDI child while opening dynamically Pin
Member 453851029-Apr-08 15:40
Member 453851029-Apr-08 15:40 
QuestionHow to implement a dynamic panel of controls in MFC Pin
C0mendador29-Apr-08 11:24
C0mendador29-Apr-08 11:24 
AnswerRe: How to implement a dynamic panel of controls in MFC Pin
Christopher Duncan29-Apr-08 16:02
Christopher Duncan29-Apr-08 16:02 
AnswerRe: How to implement a dynamic panel of controls in MFC Pin
Rajkumar R29-Apr-08 21:20
Rajkumar R29-Apr-08 21:20 
Questionhelp with win32 Pin
worldwarIIfanatic29-Apr-08 10:44
worldwarIIfanatic29-Apr-08 10:44 
AnswerRe: help with win32 Pin
Saurabh.Garg29-Apr-08 16:12
Saurabh.Garg29-Apr-08 16:12 
AnswerRe: help with win32 Pin
CPallini29-Apr-08 21:24
mveCPallini29-Apr-08 21:24 
AnswerRe: help with win32 Pin
Hamid_RT29-Apr-08 21:52
Hamid_RT29-Apr-08 21:52 
QuestionRe: help with win32 [modified] Pin
worldwarIIfanatic30-Apr-08 13:37
worldwarIIfanatic30-Apr-08 13:37 
QuestionRe: help with win32 Pin
worldwarIIfanatic5-May-08 13:34
worldwarIIfanatic5-May-08 13:34 
AnswerRe: help with win32 Pin
ninjanear22-May-08 7:57
professionalninjanear22-May-08 7:57 
QuestionCreating a linked list; need to know good practices. Pin
x87Bliss29-Apr-08 10:38
x87Bliss29-Apr-08 10:38 
AnswerRe: Creating a linked list; need to know good practices. Pin
Maximilien29-Apr-08 11:16
Maximilien29-Apr-08 11:16 
GeneralRe: Creating a linked list; need to know good practices. Pin
ninjanear21-May-08 3:15
professionalninjanear21-May-08 3:15 
QuestionHow to change keyboard typematic rate /delay (and led ind.) VC++/MFC? [modified] Pin
ninjanear29-Apr-08 10:05
professionalninjanear29-Apr-08 10:05 
QuestionRe: How to change typematic rate in keyboard? Pin
David Crow29-Apr-08 10:22
David Crow29-Apr-08 10:22 
AnswerRe: How to change typematic rate in keyboard? [modified] Pin
ninjanear20-May-08 23:07
professionalninjanear20-May-08 23:07 
QuestionHow do I customize the standard property sheet buttons Pin
si_6929-Apr-08 7:52
si_6929-Apr-08 7:52 
AnswerRe: How do I customize the standard property sheet buttons Pin
David Crow29-Apr-08 8:12
David Crow29-Apr-08 8:12 
AnswerRe: How do I customize the standard property sheet buttons Pin
Hamid_RT29-Apr-08 21:52
Hamid_RT29-Apr-08 21:52 
GeneralDynamically Creating Objects Pin
codeinelogic29-Apr-08 6:09
codeinelogic29-Apr-08 6:09 
Im making a class to be used in a final project for my c++ class and in my game i need to create the object "shot" when the user shoots the problem is "this" when declaring Shot=new TImage(this); has to be a part of a member function.... heres my declaration of my class and the snipit of code where i create the object called "shot" please help D'Oh! | :doh:


#ifndef SpaceInvaders<br />
#define SpaceInvaders<br />
//---------------------------------------------------------------------------<br />
#include <Classes.hpp><br />
#include <Controls.hpp><br />
#include <StdCtrls.hpp><br />
#include <Forms.hpp><br />
#include <ExtCtrls.hpp><br />
#include <Graphics.hpp><br />
//---------------------------------------------------------------------------<br />
<br />
class SpaceInvaders{<br />
private:<br />
public:<br />
        TImage *Shot;<br />
        bool __fastcall Collide(TControl *C1, TControl *C2);<br />
        void __fastcall Shots(TControl *C1);<br />
        void UserMovement(TControl *C1);<br />
};<br />
TImage *Shot;



and when i create the object...

<br />
        Shot=new TImage(*TForm1);<br />
        Shot->Parent=Form1;<br />
        //Shot->Picture;<br />
        Shot->Width=15;<br />
        Shot->Proportional=true;<br />
        Shot->Visible=true;<br />
        Shot->Top=ShootFrom_Y;<br />
        Shot->Left=ShootFrom_X-(Shot->Width/2);<br />

QuestionRe: Dynamically Creating Objects Pin
David Crow29-Apr-08 7:29
David Crow29-Apr-08 7:29 
QuestionMFC dosen't care about code quality? Pin
Naveen29-Apr-08 4:16
Naveen29-Apr-08 4:16 

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.