|
if dit a bit research
and kame up hith this progy
its basicly a simple scrol text not supper fine but it choud wordk if you make it further
trik is in this
void CScrolDlg::OnBUTTONstartStop() <br />
{<br />
m_Scroltextje = m_InputTextVariabel;<br />
<br />
<br />
m_scrollengt = m_Scroltextje.GetLength();<br />
m_scrollengt = m_scrollengt -1 ;
m_Scroltextje.Delete(0,m_scrollengt+1);
UpdateData(FALSE);<br />
<br />
}
but you have to do make it a litle completer
i cant do al the work 4 u but basicly it works simple like this
her is the link for hole litle project i make
http://www.palcopy.com/down_load/scrol.zip[^]
you have to do the scrol in a timer function thats all i think you can figure it out this way
greetings to al of you
-- modified at 8:11 Thursday 10th November, 2005
|
|
|
|
|
Amarelia wrote: So is there a way to do it ?
Of course there is, but it can become complicated.
Only print the part of the text that needs to be seen and nothing else. That is you need to know: which is the first visible character and what its x coordinate is, as well as which visible character is last.
Check out GetTextExtent() amongst others.
Oh, one last note: The Windows text output functions states that they are limited to 8192 characters. That's not exactly true, the number of characters depend on the size of the font; in otherwords, the total number of pixels in the string length is limited to 32767.
INTP
Every thing is relative...
|
|
|
|
|
i try to use vc6 call the informix'sp,
but the odbc raise Exception "code=80004005,Description=[Informix][Informix ODBC Driver][Informix]Routine (get_callback_info) can not be resolved."
plz help me?
what is the right way?
my code is:
CREATE PROCEDURE get_callback_info(stt char(40))
RETURNING char(40);
END PROCEDURE
---------------------------------------
vtInValue.vt=VT_BSTR;
vtInValue.bstrVal=_bstr_t("someinfo");
_ParameterPtr pParamIn;
pParamIn.CreateInstance("ADODB.Parameter");
//pParamIn=m_pCommand->CreateParameter("str1",adBSTR,adParamInput,40,vtInValue);
pParamIn->Name="stt";
pParamIn->Type=adChar;
pParamIn->Direction=adParamInput;
pParamIn->Size=40;
pParamIn->Value=vtInValue;
m_pCommand->Parameters->Append(pParamIn);
//return value
_ParameterPtr pParamOut;
pParamOut.CreateInstance("ADODB.Parameter");
//pParamOut=m_pCommand->CreateParameter("s_mainid",adChar,adParamReturnValue,40,vtOutValue);
pParamOut->Name="s_mainid"; //param 2
pParamOut->Type=adChar;
pParamOut->Size=40;
pParamOut->Direction=adParamReturnValue; //output
pParamOut->Value=vtOutValue;
m_pCommand->Parameters->Append(pParamOut);
long iCount=m_pCommand->Parameters->GetCount();
//exec
m_pCommand->ActiveConnection=m_pConnection;
pRecordSet=m_pCommand->Execute(NULL, NULL, NULL);
pRecordSet->MoveFirst();
vtOutValue=pRecordSet->GetCollect("s_mainid");
|
|
|
|
|
Can anyone pls tell how to configure "Network Logon Security" while creating a profile using MAPI.
I need to create the profile without showing the profile creation dialog box (exchange server dialog box).
i used the following code to create a profile.
i could successfully create a profile, but the "Logon Network Security" option is set to "NT Password Authetication" by default.
i want to change it to "None" programmatically using MAPI.
how do i do that ??
please help.
Thank You.
if (FAILED(hRes = MAPIInitialize(NULL))) {
AfxMessageBox("Could not Initialize MAPI");
return FALSE;
}
if (FAILED(hRes = MAPIAdminProfiles(0,&lpProfAdmin))) {
AfxMessageBox("Could not Create Profile. Contact Admin");
return FALSE;
}
if (FAILED(hRes = lpProfAdmin->CreateProfile(szProfile,szPassword,NULL,
MAPI_DEFAULT_SERVICES))) {
AfxMessageBox("Could not Create Profile. Contact Admin");
}
|
|
|
|
|
There is some good spirit that knows the correct way to pass the parameters to a report
I explain myself better....
I have created the following objects:
.
.
.
.
try {
// Creazione istanza
m_pApplication.CreateInstance("CrystalRuntime.Application");
// Apro il report
m_pReport = m_pApplication->OpenReport((LPCTSTR)m_sFileRpt);
// Lista parametri report
IParameterFieldDefinitionsPtr pParamFieldDefinitions =
m_pReport->GetParameterFields();
LONG lCount = pParamFieldDefinitions->GetCount();
// Ciclo sui parametri del report
for(LONG lItem = 1; lItem <= lCount; lItem++) {
// Puntatore oggetto parametro
IParameterFieldDefinitionPtr pParamFieldDefinition = pParamFieldDefinitions->GetItem(lItem);
.
.
.
.
I am successful to read the parameters set up in the report but not to save them...any example in the net is in VB but not in VC++..
DateTime param or Other correctly...
Thanks in advance..
|
|
|
|
|
Hi all
I have a tree control .whenever i press ctrl+down/up arrow i want to set focus on the current item.And want to select that item
on clicking ctrl+space bar.
Please guide me , i have problem with setting the focus.I dont know the methodology to use setfocus.
Thanks
|
|
|
|
|
narayanagvs wrote: i want to set focus on the current item
Current item is the one which is selected. What do you mean by set focus?
narayanagvs wrote: want to select that item
on clicking ctrl+space bar
which item??
|
|
|
|
|
i think i might talk about synchronising the node in the treeView and the item actually opened as a document...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
what was that?
|
|
|
|
|
Hi,
I am planning to take VC++ certifications that can add weight to my Resume. Not the free ones like Brain Bench certifications. Should be authentic and has to be taken from recognised promatic center. Has Microsoft have plans to re-start VC++ certifications??
Please Help..
Nani
|
|
|
|
|
How to format double variable with CString::Format() to the second digit after decimal point?
thanks
|
|
|
|
|
Hello,
Did you even bother too look at MSDN[^]? It just took me 3 seconds to come up with the answer...
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
CString Temp;<br />
double MyDouble = 1.234567;<br />
Temp.Format("%.2f",MyDouble);
|
|
|
|
|
I would like to convert a normal chinese code to unicode ISO 10646 code?
Please help!
|
|
|
|
|
The working group for unicode ISO 10646 has been around since 1991, so even the libraries that come with VC6.0 should support it.
What do you mean by normal chinese?
Do you mean Taditional Chinese (probably)?
Do you mean Simplified Chinese?
I forget, which one is Big-5?
INTP
Every thing is relative...
|
|
|
|
|
I mean Traditional Chinese!
I try to read from a text file with Traditional Chinese charactor and store it into a CString. Then convert the CString to unicode ISO 10646.
What should I do?
Please help!
|
|
|
|
|
There you will have a bit of a problem, since what is stored in CSting depends on whether _UNICODE is defined or not.
What are you trying to accomplish?
INTP
Every thing is relative...
|
|
|
|
|
I use _MBCS, how can I convert the CString data to unicode ISO 10646?
I would like to store the converted code into a text file.
Please help!
|
|
|
|
|
Hi everybody. I got a short question regarding the CreateFont API. I use it like this to create a Times New Roman font of size 20 but the result is a very small Times New Roman font of a height of only 12 pixels. In Word or Notepad for example, when one selects a font of size 20, the result is a lot bigger. I must be missing some conversion maybe?
hfntFont = CreateFont(20, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, DEFAULT_CHARSET, OUT_TT_ONLY_PRECIS, CLIP_DEFAULT_PRECIS, ANTIALIASED_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Times New Roman");
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
BOOL CreateFont(int nHeight, ... );
nHeight:
Specifies the desired height (in logical units) of the font. For all height comparisons, the font mapper looks for the largest font that does not exceed the requested size or the smallest font if all the fonts exceed the requested size.
|
|
|
|
|
That wasn't an answer. I read the documentation myself and I know that. However, if I increase nHeight indeed the font grows, but just a little. So how can I convert logical units (what-ever-that-means) to pt (the measurement used in Notepad and Word). You know that font selection dialogue? Where you chose the font size? Now... how can I create a font just like it was selected from there? ::- ).
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
Sorry cann't remember the calculation right now. The CreateFont() function says it takes the logical units of the font, which is usualy the point size.
So when you specify the height, you are not specifying the height in pixels, you need to do a conversion.
Ooh! I just found this:
lfHeight = -MulDiv(PointSize, GetDeviceCaps(hDC, LOGPIXELSY), 72); (index: LOGFONT)
INTP
Every thing is relative...
|
|
|
|
|
If only I would know how to get the PointSize... searching for that in the meantime...
Oh, that's actually the size I want it to be I guess right? ::- D.
|
|
|
|
|
Yeah, that was it ::- D. Silly me. Thanks. It works! Hooray.
*scribbles Jown R. Shaw on his thank you list*
-= E C H Y S T T A S =-
The Greater Mind Balance
-- modified at 4:17 Thursday 10th November, 2005
|
|
|
|
|
You funny!
Point size is a type setter thing, which has been a pain in may (BLANK) for years. I think in pixels, not point sizes. If you ever write a text/code editor under Windows, you'll understand.
INTP
Every thing is relative...
|
|
|
|