Click here to Skip to main content
15,565,661 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: no copy constructor? Pin
feline_dracoform27-Jul-04 2:12
feline_dracoform27-Jul-04 2:12 
Generaldisable a submenu item on runtime in an MFC app Pin
caykahve26-Jul-04 0:35
caykahve26-Jul-04 0:35 
GeneralRe: disable a submenu item on runtime in an MFC app Pin
Anonymous26-Jul-04 0:45
Anonymous26-Jul-04 0:45 
GeneralRe: disable a submenu item on runtime in an MFC app Pin
caykahve26-Jul-04 0:52
caykahve26-Jul-04 0:52 
GeneralRe: disable a submenu item on runtime in an MFC app Pin
V.26-Jul-04 0:47
professionalV.26-Jul-04 0:47 
GeneralRe: disable a submenu item on runtime in an MFC app Pin
caykahve26-Jul-04 1:24
caykahve26-Jul-04 1:24 
Generalmultiple text in status-bar Pin
Anonymous26-Jul-04 0:21
Anonymous26-Jul-04 0:21 
GeneralPosition the mouse on a web browser programmatically Pin
yourbuddy7725-Jul-04 22:22
yourbuddy7725-Jul-04 22:22 
I want to change the position of mouse on an internet explorer window.I have tried the code below.The problem is that hr = pDoc4->createEventObject(NULL,&pEvtObj) fails.Because of this failure there is no point proceeding with the remaining code.Can you tell me the reason for this failure.Thanks in advance.


//For changing mouse position
IHTMLEventObj *pEvtObj = NULL;
IHTMLDocument4 *pDoc4 = NULL;
hr = m_pHTMLDoc->QueryInterface(IID_IHTMLDocument4,(void**)&pDoc4);//m_pHTMLDoc is a valid document pointer
if(SUCCEEDED(hr))
{
// VARIANT vEvt;
// VariantInit(&vEvt);
// vEvt.vt = VT_DISPATCH;
// vEvt.pdispVal = NULL;

hr = pDoc4->createEventObject(NULL,&pEvtObj);
if(SUCCEEDED(hr))
{
CComQIPtr<ihtmleventobj2, &iid_ihtmleventobj2=""> pEvtObj2;

pEvtObj2 = pEvtObj
Xpos = 100;
Ypos = 200;
g_Ypos = g_lastYpos = Ypos;
hr = pEvtObj2->put_clientX(Xpos);
if(hr == 0)
{
AfxMessageBox("put_clientX successful");
}
else
{
AfxMessageBox("put_clientX failed");
}
hr = pEvtObj2->put_clientY(Ypos);

// }

// pEvtObj->Release();
}
pDoc4->Release();
}
Generalline comparison on word basis Pin
mfc_surfer25-Jul-04 21:46
mfc_surfer25-Jul-04 21:46 
Questiondynamically create controls and attaching listeners to them? Pin
misterbear25-Jul-04 21:23
misterbear25-Jul-04 21:23 
AnswerRe: dynamically create controls and attaching listeners to them? Pin
KarstenK25-Jul-04 22:14
mveKarstenK25-Jul-04 22:14 
GeneralBut how to attach a message handler dynamically? Pin
misterbear26-Jul-04 1:04
misterbear26-Jul-04 1:04 
Questiondynamically create controls and attaching listeners to them? Pin
misterbear25-Jul-04 21:23
misterbear25-Jul-04 21:23 
GeneralGDI Objects Pin
0v3rloader25-Jul-04 14:25
0v3rloader25-Jul-04 14:25 
GeneralRe: GDI Objects Pin
Ravi Bhavnani25-Jul-04 15:54
professionalRavi Bhavnani25-Jul-04 15:54 
GeneralRe: GDI Objects Pin
Michael Dunn25-Jul-04 19:21
sitebuilderMichael Dunn25-Jul-04 19:21 
GeneralRe: GDI Objects Pin
Antony M Kancidrowski26-Jul-04 3:06
Antony M Kancidrowski26-Jul-04 3:06 
GeneralReadfile from *.txt Pin
71cwill25-Jul-04 9:39
71cwill25-Jul-04 9:39 
GeneralRe: Readfile from *.txt Pin
Michael Dunn25-Jul-04 12:33
sitebuilderMichael Dunn25-Jul-04 12:33 
GeneralDisabling/enabling menu/toolbar items... Pin
0v3rloader25-Jul-04 8:14
0v3rloader25-Jul-04 8:14 
GeneralRe: Disabling/enabling menu/toolbar items... Pin
Ivan Cachicatari25-Jul-04 12:44
Ivan Cachicatari25-Jul-04 12:44 
GeneralRe: Disabling/enabling menu/toolbar items... Pin
0v3rloader25-Jul-04 12:57
0v3rloader25-Jul-04 12:57 
GeneralRe: Disabling/enabling menu/toolbar items... Pin
Ravi Bhavnani25-Jul-04 14:33
professionalRavi Bhavnani25-Jul-04 14:33 
GeneralSolution for globally listening to keys pressed Pin
0v3rloader25-Jul-04 7:59
0v3rloader25-Jul-04 7:59 
GeneralRe: Solution for globally listening to keys pressed Pin
PJ Arends25-Jul-04 11:13
professionalPJ Arends25-Jul-04 11:13 

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.