Click here to Skip to main content
15,921,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to Reduce Desktop Size Pin
Hamid_RT4-Jul-07 19:37
Hamid_RT4-Jul-07 19:37 
QuestionHow to change place of activex control at run time Pin
adityarao314-Jul-07 1:45
adityarao314-Jul-07 1:45 
AnswerRe: How to change place of activex control at run time Pin
Mark Salsbery4-Jul-07 7:31
Mark Salsbery4-Jul-07 7:31 
GeneralRe: How to change place of activex control at run time Pin
shivditya4-Jul-07 7:39
shivditya4-Jul-07 7:39 
GeneralRe: How to change place of activex control at run time Pin
Mark Salsbery4-Jul-07 7:45
Mark Salsbery4-Jul-07 7:45 
QuestionRe: How to change place of activex control at run time Pin
Mark Salsbery4-Jul-07 7:36
Mark Salsbery4-Jul-07 7:36 
QuestionRe: How to change place of activex control at run time Pin
adityarao314-Jul-07 17:50
adityarao314-Jul-07 17:50 
AnswerRe: How to change place of activex control at run time Pin
Mark Salsbery5-Jul-07 6:19
Mark Salsbery5-Jul-07 6:19 
In a dialog, you can add a control variable to the class just like any other control:

// Add the member to the class declaration
CWMPPlayer4 m_MediaPlayer;
...
// Add this line to DoDataExchange() (where IDC_PLAYER is the ID of the control resource)
DDX_Control(pDX, IDC_PLAYER, m_MediaPlayer);

Then any time after the control is created (after the base class OnInitDialog() has been called)
you can access it like any other window (CWMPPlayer4 is a CWnd-derived class)...

m_MediaPlayer.GetWindowRect(...)
m_MediaPlayer.MoveWindow(...)
etc.


Mark


Mark Salsbery
Microsoft MVP - Visual C++


"Go that way, really fast. If something gets in your way, turn."

QuestionRegarding buttons on propertypages Pin
Neeraj Sinha4-Jul-07 1:36
Neeraj Sinha4-Jul-07 1:36 
AnswerRe: Regarding buttons on propertypages Pin
_AnsHUMAN_ 4-Jul-07 3:07
_AnsHUMAN_ 4-Jul-07 3:07 
GeneralRe: Regarding buttons on propertypages Pin
Neeraj Sinha4-Jul-07 3:34
Neeraj Sinha4-Jul-07 3:34 
QuestionRe: Regarding buttons on propertypages Pin
David Crow5-Jul-07 3:30
David Crow5-Jul-07 3:30 
QuestionCan i find registry key/entry if intermediate registry key name is not known? Pin
Mushtaque Nizamani4-Jul-07 1:24
Mushtaque Nizamani4-Jul-07 1:24 
AnswerRe: Can i find registry key/entry if intermediate registry key name is not known? Pin
CPallini4-Jul-07 2:09
mveCPallini4-Jul-07 2:09 
AnswerRe: Can i find registry key/entry if intermediate registry key name is not known? Pin
David Crow5-Jul-07 3:33
David Crow5-Jul-07 3:33 
QuestionOndragenter() Pin
Jhony george4-Jul-07 0:52
Jhony george4-Jul-07 0:52 
AnswerRe: Ondragenter() Pin
Hans Dietrich4-Jul-07 1:27
mentorHans Dietrich4-Jul-07 1:27 
AnswerRe: Ondragenter() Pin
Mark Salsbery4-Jul-07 7:40
Mark Salsbery4-Jul-07 7:40 
QuestionHow to detect which object called the message Pin
chaitannya_m3-Jul-07 23:03
chaitannya_m3-Jul-07 23:03 
AnswerRe: How to detect which object called the message Pin
Nibu babu thomas3-Jul-07 23:29
Nibu babu thomas3-Jul-07 23:29 
AnswerRe: How to detect which object called the message Pin
Naveen3-Jul-07 23:31
Naveen3-Jul-07 23:31 
AnswerRe: How to detect which object called the message Pin
Rajkumar R3-Jul-07 23:40
Rajkumar R3-Jul-07 23:40 
GeneralRe: How to detect which object called the message Pin
chaitannya_m4-Jul-07 9:11
chaitannya_m4-Jul-07 9:11 
AnswerRe: How to detect which object called the message Pin
Rajkumar R4-Jul-07 19:01
Rajkumar R4-Jul-07 19:01 
QuestionCheck if app exists and open from internet Pin
Dimkov3-Jul-07 22:53
Dimkov3-Jul-07 22:53 

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.