|
Use SetItem[^]
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
What about setting the wizard style properpage's caption?
|
|
|
|
|
ModifyStyleEx[^]
Marc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
How to ignore the style of colspan of tablecells,using the interface of IHTMLTableCell?Does it need any custom namespace? Thank you very much!
|
|
|
|
|
Push up the problem for help by myself,thx a lot^_^
|
|
|
|
|
Greetings.
I have the problem that my OnPrint-methode don't print my Bitmap. It's shown in the printpreview, but not printed. I didn't see the fault, cause it goes well. Without changing anything now it isn't printing the picture.....
Thx for help
Puppet
_____________________________________________________________________________-
Here the source:
void COutput2::OnPrint(CDC* pDC, CPrintInfo* pInfo)
{
int nSavedDC = pDC->SaveDC();
// Fussnoten setzen
CFont* pOldFont = pDC->SelectObject(&m_fontSet);
pDC->SetTextAlign(TA_LEFT|TA_BASELINE);
pDC->TextOut(HORZ_MARGIN,VERT_MARGIN,srkChange.strStatus);
// Tree initialisieren
CTreeCtrl& Tree = m_TreeWnd.GetTreeCtrl();
HTREEITEM hItem=Tree.GetRootItem();
int maxItemCnt = (prntY-VERT_MARGIN*2)/m_nRowHeight-2;
// Position im Tree ermitteln
for(int pos=0; pos<maxitemcnt*(pinfo->m_nCurPage-1); pos++)
{
Tree.Expand(hItem,TVE_EXPAND);
hItem = Tree.GetNextItem(hItem,TVGN_NEXTVISIBLE);
}
// Bildquelle übergeben
bm.LoadBitmap(IDB_TREE_ICON);
BITMAP bmpInfo;
bm.GetBitmap(&bmpInfo);
// Speicher anlegen und alten sichern
CDC SpeicherDC;
SpeicherDC.CreateCompatibleDC(pDC);
CBitmap * oldbm = SpeicherDC.SelectObject(&bm);
int ItemCnt=0;
do
{
ItemCnt++;
// Position ermitteln
int x = HORZ_MARGIN+CalculateRootCnt(hItem)*20;
int y = VERT_MARGIN+m_nRowHeight*(ItemCnt+1);
// Bild ermitteln
int nImage, nSelectedImage;
Tree.GetItemImage(hItem,nImage,nSelectedImage);
// Bild transparent machen (rosa->weiss)
for(int picx=0;picx<bmpinfo.bmwidth;picx++)
for(int="" picy="0;picy<bmpInfo.bmHeight;picy++)
" if(speicherdc.getpixel(picx,picy)="=RGB(255,0,255))
" speicherdc.setpixel(picx,picy,rgb(255,255,255));=""
="" bild="" an="" dc="" übergeben
="" pdc-="">BitBlt(x,y,bmpInfo.bmWidth/4,bmpInfo.bmHeight,
&SpeicherDC,bmpInfo.bmWidth/4*nImage,0,SRCCOPY);
// Tree-Text verarbeiten
CString text = Tree.GetItemText(hItem);
char tmp[256];
strcpy(tmp,text);
text = strtok( tmp, "\t" );
pDC->TextOut(x+25,y+BIAS,text);
text = strtok( NULL, "\t" );
pDC->TextOut(x+25+300,y+BIAS,text);
// Tree "aufklappen", nächstes Item
Tree.Expand(hItem,TVE_EXPAND);
hItem = Tree.GetNextItem(hItem,TVGN_NEXTVISIBLE);
}
while(hItem && ItemCnt<maxitemcnt);
fusszeile="" -=""> Seitenanzahl
CString nPage;
nPage.Format(" %d",pInfo->m_nCurPage);
nPage = UINTtoCString(IDS_OUT_PAGE) + nPage;
pDC->TextOut(prntX/2-nPage.GetLength(),prntY-20,nPage);
// alte Objekte zurücksetzen
pDC->SelectObject(pOldFont);
//pDC->SelectObject(oldbm);
pDC->RestoreDC(nSavedDC);
}
//OnPrint///////////////////////////////////////////////////////////////////
|
|
|
|
|
|
I wrote a Web Browsing Program,there are several problems I can not solve,so please help,thanks a lot
Here is my program's picture(sorry that the language is in Chinese,but it has nothing to do with my questions)
http://pic.lyglyg.com/yourpic/2005/08/05/c4db079c35bdd1843a4ad893a4016ab8.jpg[^]First ,what the black arrow points is a CComboxBox Control which is located on my CToolbar,My problem is how can I set my url address directly into the edit control of the Combobox control,It seems to me that I can only do this through 2 ways,first add the url into the listbox of combobox and select it so the url will appear in edit box ,or use clipboard to first copy url to clipboard and use combobox's paste function to add it to edit box(without add it to list box),but can I do it directly
Second,can I achieve this like type in address in the edit box and press ENTER,then Show the page.It seems to me that the combobox didn't respond the Enter in edit box.Is there some ways to do that
Third:the red arrow pointed is CHtmlView Class,it handles page showing well,but how can I deal with this : when I clicked an address,it will pop up a new window,what I want to do is show the address of the new window just in the origin window,Is that possible
|
|
|
|
|
Self Pushing up the problem for help,thanks
|
|
|
|
|
hi,
i have a problem with a dll. I'm writing a program to controll a lighting system, but it doesnt work!!!
could anybody help me?
i'm writing with visual c++.
thanks for all your help
|
|
|
|
|
be more specific
sl74 wrote:
but it doesnt work!!!
what doesn't work?? piece of code??
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
i can't integrate the dll into my programm. it runs with all the other languages (borland c++, delphi, visual-basic), but with visual-c++ it does't work!!!
i used code from the web and from some books where i have found how to integrate a dll into a c++-program, but nothing...
i need a code-fragment with which i can integrate a dll into my c++-program.
that's it...
|
|
|
|
|
You should be more specific:
do you load the DLL dynamicly(using LoadLibrary() and function pointers)
or staticly?
a peace of code to show us the problem will help us to understand whats wrong.
BTW - what is the k8062d.dll purpose?
Regards,
Eli
|
|
|
|
|
As Bill Buklis said,
char * first = "first";
char * second = "second";
CString str = CString(first) + second;
this is working without any problem.. y u said u wont work?
plz exp
V
|
|
|
|
|
no, you didn't understand...
i said THIS won't work :
char* first = "first";
char* second = "second";
CString str = first + second;
there is somewhere in the standard headers some operators defined, and especially two ones that are similar than the following :
const CString& operator + (LPCTSTR, const CString&);
const CString& operator + (const CString&, LPCTSTR);
so, for that to work, the operator must have one of its 2 operands of type CString.
let's expose what's going on what's going on when writing CString str = CString(first) + second;
1. Declaring <code>str </code>as a <code>CString </code>object.
2. seeing the <code>operator=()</code> the compiler evaluates the right part of the <code>=</code>
3. <code>CString(first)</code> call explicitely a constructor of the CString class that
get a LPCTSTR (or <code>const char*</code> - it is the same).
4. seeing the <code>operator+()</code>, the compiler searches for an operator + that
have the matching operand type (before trying an implicit cast). Happily, this
operator + exist (see what i previously said on the global operators). it so calls is.
5. affects the CString that result from the + operation into <code>str</code>
understand better now, or may i have to explain what's going on too when using + between 2 char* ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Merci beaucoup.. c'est claire maintenant
V
|
|
|
|
|
you're welcome.
'm happy to be helpful...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
psst, you know, you could ask me to explain on the post i said that, even if it didn't appear on your screen anymore, because i have a e-mail notification each time i receive an answer on one of my posts...
nevermind...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
d'accord tocxxt ...
V
|
|
|
|
|
in english sir, in english
where are so international !!!!
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Vivekuniq wrote:
d'accord tocxxt ..
Which language it that!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
ThatsAlok wrote:
Vivekuniq wrote:
d'accord tocxxt ..
Which language it that!
he just said in french : "OK toxcct"...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
You are required to write a program to implement the EXPRESSION EVALUATION problem above using an appropriate data structure. Your program must include the functionalities to enable the user to evaluate any expression with the following minimum assumptions
Operands may be negative
Operators must include (^, %, *, /, +, -,)
Test for division by zero
Parenthesis Checking
Allow Sin, Cos and Tan values
|
|
|
|
|
uma_kanth_k wrote:
You are required to...
I am ?? you know what, i already did it
and i guess you don't want to make your homework by yourself...
see VisualCalc...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
If i give 2+3(4) in the window, it is giving 5.000 but that is wrong.
|
|
|
|
|