|
FISH786 wrote: I am getting a compile error left of m_summary must have class/struct/union.
What type is m_summary ?
What statement produces the error?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
DDX_Control(pDx,IDC_LIST2, m_summary);
Its a CListCtrl.
|
|
|
|
|
Hi,
i have created an ActiveX in MFC which I call from a local HTML page via vbscript(XP Pro IE6) however it
always pops up a warning I have been told I need to implement IObjectSafety
But I don't Have a clue!!!
pls help me out....
|
|
|
|
|
This page [^] might interest you.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I am able to control the mouse movement on the screen as the following:
double fScreenWidth = GetSystemMetrics( SM_CXSCREEN )-1;
double fScreenHeight = GetSystemMetrics( SM_CYSCREEN )-1;
double fx = PosX * (65535.0f/fScreenWidth);
double fy = PosY * (65535.0f/fScreenHeight);
INPUT Input={0};
Input.type = INPUT_MOUSE;
Input.mi.dwFlags = MOUSEEVENTF_MOVE|MOUSEEVENTF_ABSOLUTE;
Input.mi.dx = fx;
Input.mi.dy = fy;
SendInput(1,&Input,sizeof(INPUT));
However, I am not able to highlight the text or scroll the text as I wanted! Can it be some thimg like this:
For scroll (as WM_MOUSEWHEEL in http://code.google.com/p/lomm/source/browse/trunk/LOTROMusicManager/SDK.cs?spec=svn105&r=105):
Input.mi.dwFlags = 0x020A|MOUSEEVENTF_MOVE|MOUSEEVENTF_ABSOLUTE; For Highlight (as Left button down & XY moving):
Input.mi.dwFlags = MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_MOVE|MOUSEEVENTF_ABSOLUTE;
Can anyone help? Thank in-advanced.
|
|
|
|
|
hi all,
i am working on Text to Speech in MFC and i have to highlight words when TTS speaks
can anyone tell me how to do this, how text will highlight when speaks.
waiting for reply.
thanxs in advance
|
|
|
|
|
Member 2828452 wrote: am working on Text to Speech in MFC and i have to highlight words when TTS speaks
can anyone tell me how to do this, how text will highlight when speaks.
waiting for reply
Which control are you using?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
how to change slave sound device to primary sound device(usb sound device and realtek
high definition audio in my computer).
change its in C++ or C# .
look forward to your favorable reply.
best regards
|
|
|
|
|
I am building an application that has on openGL window in an MFC dialog
the OpenGL window is implemented using CWnd class and CRect...
the OpenGL window has a 1D graph plotted.
i want to implement a horizontal scroll in the dialog if my graph goes out of the veiwport or if the OpenGL window is scaled..
Any help would be really appreciated
& its a little urget
please help
|
|
|
|
|
Hi,
i created an ActiveX control using MFC ..pls let me know how can i make ActiveX control as Safe for Scripting and Initialization...
|
|
|
|
|
This page might interest you.
How to mark MFC ActiveX controls as Safe for Scripting and Initialization[^]">
|
|
|
|
|
Hello,
I'm new to MFC and I have a situation that I cannot handle ...
I have a dialog based application and within this dialog I have a tab control.
For each tab, I've created a property page as a new resource.
Within these property pages I have edit boxes, combo boxes and other controls.
The tabs are working fine ... but I can't find a way to have access to the controls within each property page
I've tried in many, many ways but with no success.
I would be grateful if you can help me.
Many thanks,
Mike.
|
|
|
|
|
One way is to set the values you need from the controls in the property sheet class using the get/set functions. In this manner you can access the values across different tabs
See GetPage function from CPropertyPage
Hope it helps
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
OK, I will try.
Thank you for your quickly reply!
Mike.
|
|
|
|
|
Mihai Andrei Dragnea wrote: The tabs are working fine ... but I can't find a way to have access to the controls within each property page
Using ClassWizard (Ctrl+W), associate each control a member variable of the appropriate type (edit control = CEdit , combobox = CCombobox ). Now when you want to assign a value to an edit control, just use:
m_editPhone.SetWindowText("(800) 555-1212"); When you want to add items to the combobox, use:
m_cbStates.AddString("Oklahoma");
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
David,
I am running into a simillar issue. I am trying to update a list control on one of the pages and have declared a variable for the control. However I get a compile error m_summary must have class/struct/union.
I am trying to update the page from a function withing the same app.
m_summary.InsertData(0,EmployeeName);
Could you please advice.
Thanks a Million.
|
|
|
|
|
FISH786 wrote: ...and have declared a variable...
Of what type?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
IDC_LIST2, which is a List control.
|
|
|
|
|
So the variable is a CListCtrl type?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
It's a CListCntrl. Yes.
I am actually trying to access it from a function with in the app.
|
|
|
|
|
FISH786 wrote: I am actually trying to access it from a function with in the app.
Is that function a method of the class that owns the list control?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
|
So why would you be expecting it to work then? Technically you can make it work, but not without having to jump through several hoops first.
You would be much better served by using a property sheet (which simply replaces the dialog) with two or more property pages instead.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Thank you. realised that when I answered no. thank again.
|
|
|
|
|
hi,
this is a part of a mail function that uses CDO.
function works well with normal fields & settings and sends mail very good
but i cound not set the header part of a e-mail.
so , Importance is one of headers that i want to set .
but it does not work
could you help me to set importance header with this code block.
the bold part of code what i did so far but no succeed.
thanks in advance
note: i did not add whole function because it is too long
--------------------------------------------------------
CoInitialize(NULL);
HRESULT hr = NULL;
IMessage *pMsg;
IConfiguration *pConfig;
Fields *pFields;
Field *pField;
hr = CoCreateInstance(__uuidof(Message),
NULL,CLSCTX_INPROC_SERVER,__uuidof(IMessage),reinterpret_cast<void**>(&pMsg));
hr = CoCreateInstance(__uuidof(Configuration),
NULL,CLSCTX_INPROC_SERVER,__uuidof(IConfiguration),reinterpret_cast<void**>(&pConfig));
pConfig->get_Fields(&pFields);
COleVariant sFname((LPCTSTR)"urn:schemas:mailheader:Importance");
pFields->get_Item(sFname.Detach(),&pField);
COleVariant sImportance((LPCTSTR)"high");
pField->put_Value(sImportance.Detach());
pFields->Update();
pMsg->put_Configuration(pConfig);
hr = pMsg->Send();
if (FAILED(hr))
{
_com_error err(hr);
szReturnVal = err.ErrorMessage();
}
if (pFields)
{
pFields->Release();
}
if (pField)
{
pField->Release();
}
if (pMsg)
{
pMsg->Release();
}
if (pConfig)
{
pConfig->Release();
}
CoUninitialize();
|
|
|
|