Click here to Skip to main content
15,919,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to Reduce Desktop Size Pin
Nibu babu thomas4-Jul-07 3:19
Nibu babu thomas4-Jul-07 3:19 
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 
I am using version of VC++ version 6.0. I dont understand your concept of wrapper class. The classes gets automatically created once you place activex control.
So I feel version in not required. The defination of create() which I have written is one which comes in Active X controls self generated classes.
Any way I done one mistake I dont need to create
control at runtime. I just need to change place at runtime so that I can save my text display. I got my own answer I have to get window then rect and change place. My current problem is diverted,but still these create remains problem.

#if !defined(AFX_WMPPLAYER4_H__29950495_92A5_48C7_A665_14C10BA68140__INCLUDED_)
#define AFX_WMPPLAYER4_H__29950495_92A5_48C7_A665_14C10BA68140__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++

// NOTE: Do not modify the contents of this file. If this class is regenerated by
// Microsoft Visual C++, your modifications will be overwritten.


// Dispatch interfaces referenced by this interface
class CWMPControls;
class CWMPSettings;
class CWMPMedia;
class CWMPMediaCollection;
class CWMPPlaylistCollection;
class CWMPNetwork;
class CWMPPlaylist;
class CWMPCdromCollection;
class CWMPClosedCaption;
class CWMPError;
class CWMPDVD;
class CWMPPlayerApplication;

/////////////////////////////////////////////////////////////////////////////
// CWMPPlayer4 wrapper class

class CWMPPlayer4 : public CWnd
{
protected:
DECLARE_DYNCREATE(CWMPPlayer4)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0x6bf52a52, 0x394a, 0x11d3, { 0xb1, 0x53, 0x0, 0xc0, 0x4f, 0x79, 0xfa, 0xa6 } };
return clsid;
}
virtual BOOL Create(LPCTSTR lpszClassName,
LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect,
CWnd* pParentWnd, UINT nID,
CCreateContext* pContext = NULL)
{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }

BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd, UINT nID,
CFile* pPersist = NULL, BOOL bStorage = FALSE,
BSTR bstrLicKey = NULL)
{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
pPersist, bStorage, bstrLicKey); }

// Attributes
public:

// Operations
public:
void close();
CString GetUrl();
void SetUrl(LPCTSTR lpszNewValue);
long GetOpenState();
long GetPlayState();
CWMPControls GetControls();
CWMPSettings GetSettings();
CWMPMedia GetCurrentMedia();
void SetCurrentMedia(LPDISPATCH newValue);
CWMPMediaCollection GetMediaCollection();
CWMPPlaylistCollection GetPlaylistCollection();
CString GetVersionInfo();
void launchURL(LPCTSTR bstrURL);
CWMPNetwork GetNetwork();
CWMPPlaylist GetCurrentPlaylist();
void SetCurrentPlaylist(LPDISPATCH newValue);
CWMPCdromCollection GetCdromCollection();
CWMPClosedCaption GetClosedCaption();
BOOL GetIsOnline();
CWMPError GetError();
CString GetStatus();
CWMPDVD GetDvd();
CWMPPlaylist newPlaylist(LPCTSTR bstrName, LPCTSTR bstrURL);
CWMPMedia newMedia(LPCTSTR bstrURL);
BOOL GetEnabled();
void SetEnabled(BOOL bNewValue);
BOOL GetFullScreen();
void SetFullScreen(BOOL bNewValue);
BOOL GetEnableContextMenu();
void SetEnableContextMenu(BOOL bNewValue);
void SetUiMode(LPCTSTR lpszNewValue);
CString GetUiMode();
BOOL GetStretchToFit();
void SetStretchToFit(BOOL bNewValue);
BOOL GetWindowlessVideo();
void SetWindowlessVideo(BOOL bNewValue);
BOOL GetIsRemote();
CWMPPlayerApplication GetPlayerApplication();
void openPlayer(LPCTSTR bstrURL);
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_WMPPLAYER4_H__29950495_92A5_48C7_A665_14C10BA68140__INCLUDED_)




|| Lust Causes Sorrow ||

AnswerRe: How to change place of activex control at run time Pin
Mark Salsbery5-Jul-07 6:19
Mark Salsbery5-Jul-07 6:19 
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 

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.