|
This function can be founded in tools menu in VC 6.0, however, I cann't get any idea in VC.net. Thanks.
|
|
|
|
|
I only have Visual Studio .NET 2002 installed.
The similar one is "Object Browser" (Ctrl - Alt - J) found in Visual Studio .NET 2002.
Maxwell Chen
|
|
|
|
|
yes, I have found it. And how can we use the functions such as Call Graph or Caller Graph in Source Browser. Thanks.
|
|
|
|
|
I dunno. Even the "Browse Information" fails!
Maxwell Chen
|
|
|
|
|
Sir,
I am integrating flash with VC++.
I am using Dialog Based App.
I inserted this Active X Control.
I wanted to show both this Control and Dialog Window in a maximized state.
I called ShowWindow(SW_MAXIMIZED) in OnInitDialog.
When I execute the App I get the main window in maximized but the control in that is not at all maximized.
Pls help.
Regards
Chintu
|
|
|
|
|
You'll have to move yourself the control at the size and position you want based on the client coordinates of the parent window.
Take a look at MoveWindow in the MSDN.
|
|
|
|
|
Hi all,
I have my class that Inherites from CTreeCtrl.
I override OnPain() and i draw the items myself.
next to each item i am trying to draw an image
i use the following code:
m_imageOptions.Create(IMAGE_DIMENTIONS,
IMAGE_DIMENTIONS,
ILC_COLOR24 | ILC_MASK,
MAX_OPTIONS_NUM,
0);
hBmp = pDlgInf->GetBmp();
CBitmap bmp;
if (NULL != hBmp)
{
bmp.Attach(hBmp);
iImage = m_imageOptions.Add(&bmp,TRANSPARENT_CLR);
bmp.Detach();
::DeleteObject(hBmp);
}
CPoint pnt(rc.left + SPACE_WIDTH / 5,rcText.top);
m_imageOptions.Draw(pDC,iImage,pnt,ILD_TRANSPARENT);
BOOL CPrfTreeCtrl::OnEraseBkgnd(CDC* pDC)
{
return TRUE;
}
problem:
I manage to see the image next to the item, but if i drag my dialog (the tree
is placed over a dialog), outside of the screen boundaries and then drag it
back within the screen boundaries, the image is gone...other drawing of the tree (such as the items) are correct....
what am i doing wrong? can any1 help?
thanks in advanced
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
Hi,
Please help me.
I need to draw a list control that is placed on a diagram and it should be transparent.
|
|
|
|
|
You can display an image as the list control background using the following code:
LVBKIMAGE image;
memset(&image, 0, sizeof(image));
image.ulFlags = LVBKIF_STYLE_NORMAL|LVBKIF_SOURCE_URL;
image.pszImage = szFileName;
image.xOffsetPercent = 50;
image.yOffsetPercent = 50;
SendMessage(m_hListView, LVM_SETBKIMAGE, 0, (LPARAM)&image);
SendMessage(m_hListView, LVM_SETTEXTBKCOLOR, 0, CLR_NONE);
The Rob Blog
|
|
|
|
|
Thanks a lot,
It works perfectly.
|
|
|
|
|
Hi!
I'm trying to get a bitmap to rotate. I want the bitmap to rotate around its midpoint (or an abitrary point)
I first used the formula:
<br />
xNew = (x * cosTemp) - (y * sinTemp);<br />
yNew = (x * sinTemp) + (y * cosTemp);<br />
but this only rotated the bitmap around the upper-left corner, and therefore I changed to this:
<br />
xNew = ((x * cosTemp) - (y * sinTemp)) + xRotAxis;<br />
yNew = ((x * sinTemp) + (y * cosTemp)) + yRotAxis;<br />
now the image is rotating around the x-and yRotAxis, BUT at the upper-left corner of the surface and thus hiding 3/4:s of the picture!
How do I make it rotate around its center at the surfaces' center?
|
|
|
|
|
Help with CSplitterWnd->CreateView method,trying to load a CDialog derived class
When I sply a window in two, I use on the left frame a class derived from CImageView,and on the right frame a class derived from CFormView. No problem here. But if I change the right frame class to another one derived from CDialog,is not working.How can I solve this?
|
|
|
|
|
I'm just starting to program using MMX, but i couldnt find old intel MMX application notes on the website. It seems the link has changed, i tried searching for it but couldnt find it. Can anyone help me what is the link to intel mmx application notes?
I'm trying to find this and others,
Color Conversion from YUV12 to RGB Using Intel MMX™ Technology
Old link, but cannot find it.
http://developer.intel.com/drg/mmx/appnotes/ap548.htm
|
|
|
|
|
Some other Image Effects MMX application notes that i cannot find. Can someone help? Where are the notes anyway? Even the search doesnt give a result!
http://developer.intel.com/drg/mmx/appnotes/colorcon.htm
http://developer.intel.com/drg/mmx/appnotes/image2x.htm
http://developer.intel.com/drg/mmx/appnotes/ap546.htm
http://developer.intel.com/drg/mmx/appnotes/ap552.htm
http://developer.intel.com/drg/mmx/appnotes/ap550.htm
|
|
|
|
|
|
I've contacted Intel, and they said that MMX application notes were removed due to age. An older copy of the notes can still be found at a third party website at
http://www.ee.und.ac.za/DataCDs/Intel/DRG/MMX/APPNOTES/
Anonymous, thanks anyway
|
|
|
|
|
Hello friends,
I want to display an integer value in the messagebox. How do I do that?
Amar.
|
|
|
|
|
int iNum = 123;
CString sText;
sText.Format("iNum = %d", iNum);
AfxMessageBox(sText);
Maxwell Chen
|
|
|
|
|
Hi
Thanks Maxwell.
But I am not using MFC. It is a simple C program.
Also do I need to include any header file to use CString.
Amar.
|
|
|
|
|
Forget about CString stuff, since it is of C++.
For C program, do this way:
//
#include <windows.h>
/* ..... */
/* in your function, for example. */
void FooBar()
{
int iNum = 12345;
char sText[12] = {0};
sprintf(sText, "%d", iNum);
/* Including windows.h is for MessageBox function call. */
MessageBox(NULL, sText, "MyMsg", MB_OK);
}
<b>Maxwell Chen</b>
|
|
|
|
|
Thanks again Maxwell
Amar.
|
|
|
|
|
int iNum = 123;
TCHAR szNumAsString[256]; // arbitrary size
_stprintf(szNumAsString, _T("%d"), iNum);
::MessageBox(NULL, szNumAsString, _T(""), MB_OK);
|
|
|
|
|
There is no scope resolution operator :: in C.
Maxwell Chen
|
|
|
|
|
My mistake (typo), die-hard C++ programmer.
|
|
|
|
|
beginner of VC , confused a lot .
thx for any help.
|
|
|
|