|
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.
|
|
|
|
|
Go the Project/Settings menu, then click on C/C++, select 'Precompiled Headers' from the category dropdown, and switch them off.
|
|
|
|
|
don't your problem come from that error ? :
fatal error C1010: unexpected end of file while looking for precompiled header directive
try to place the #include "stdafx.h" before all other includes...
you can also read the FAQ
TOXCCT >>> GEII power
|
|
|
|
|
Sometimes you do have to disable precompiler headers inorder to compile.
God is Real, unless declared Integer.
|
|
|
|
|
hiiiiiii
i want to make an application in which i want to change the color of a picture. e.g the picture is a design of a carpet and thier are several colors at different portions of that design . now if a user wants to change the color say he wants to change the red color with green color,he kust click on red color, so whereever the red color is present on that picture at different locations should be cjanged with green color.
can any body have this like application, i need it immediately plz or any body can help me how can i make it .can anybody gives me the logic and different APIs to be used? but if i got the application it will be a great great favour for me plzzz.
thanx
regards
Tahir
|
|
|
|
|
hello all,
here i am designing an SDI Doc/View application. Instead CView i had used the CFormView to display my dialog inthe view. As given in the MSDN, i had followed a procedure to change that dialog in the view dynamically. But the problem is that the newly displayed dialog is not responding for various events(WM_COMMAND,...).
How shall i make it to work properly.
ComputerNewton
|
|
|
|
|
Hi,
I m new to ADSI programming. I just wanted to check if the entered user name and password is existing in the specified server or not. But for me ADsGetObject() never succeeds. can someone tell me, where I have gone wrong..
here is my code:
IADsOpenDSObject *pDSO;<br />
HRESULT hr;<br />
<br />
hr = ADsGetObject(L"WinNT:", IID_IADsOpenDSObject, (void**) &pDSO);<br />
if (SUCCEEDED(hr))<br />
{<br />
IDispatch *pDisp;<br />
hr = pDSO->OpenDSObject(L"WinNT://iqlsoftware", L"ashokm", L"password", ADS_SECURE_AUTHENTICATION, &pDisp);<br />
if(SUCCEEDED(hr))<br />
AfxMessageBox("Success");<br />
else<br />
AfxMessageBox("Error");<br />
}<br />
else<br />
AfxMessageBox("Object failed");
regards,
Ashok
|
|
|
|
|
It works fine now. only thing I forgot was to use ::CoInitialize() and ::CoUninitialize().
|
|
|
|