|
you should load differnt bitmaps inorder to see the "pressing" effect of the button. load two different images to test it.
ie
m_mButton1.LoadBitmaps(IDB_BITMAP1,IDB_BITMAP2,.,.,);
V
|
|
|
|
|
Hello mate,check this out: www.codeproject.com/buttonctrl/cimagebutton.asp
And your trouble days are gone...
Lefteris_RG3120
|
|
|
|
|
See here.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
i have included wintrust.h header file in stdafx.h
when i built my program it is showing me errors
c:\program files\microsoft visual studio\vc98\include\wintrust.h(139) : error C2143: syntax error : missing ';' before '*'
c:\program files\microsoft visual studio\vc98\include\wintrust.h(139) : error C2501: 'CMSG_SIGNER_INFO' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(139) : error C2501: 'psSignerInfo' : missing storage-class or type specifiers
i check c:\program files\microsoft visual studio\vc98\include\wintrust.h ,wintrust.h header file is present
i m notunderstanding where is the problem.i think i do have to download any service pack
thanx in advance
|
|
|
|
|
You should check the order of included files.
|
|
|
|
|
i have change the order of my included files.i also included schannel.h
now my stdafx.h looks like
#include schannel.h
#include wincrpyt.h
#include wintrust.h
it is showing me error:cannot open the included file schannel
in my system i checked and found that schannel.dll is present but not the schannel.h
|
|
|
|
|
sunit5 wrote:
#include schannel.h
#include wincrpyt.h
#include wintrust.h
is it normal that we don't see the <> rounding the included files ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote:
is it normal that we don't see the <> rounding the included files ?
Actaully He want to show header file he including.....
"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:
toxcct wrote:
is it normal that we don't see the <> rounding the included files ?
Actaully He want to show header file he including.....
i think, he needs to check [] DO not treat <'s as HTML tags... right??
regards,
V
|
|
|
|
|
Vivekuniq wrote:
right??
Right,But it would be better, if you notify same to Sunit5
"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
|
|
|
|
|
Vivekuniq wrote:
i think, he needs to check [] DO not treat <'s as HTML tags... right??
No. The angle brackets are actually missing, instead of just not being displayed.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
yes the header file is included in <>.i m sorry i didnot mention
|
|
|
|
|
It is to hard to solve this problem. But here are few my suggestions:
_Install the lastest Platform SDK. I think that file schannel.h is in new Platform SDK.
_Move the included lines to cpp file where it's functions used to check again.
Because, I don't know wintrust...so I can not test
|
|
|
|
|
|
thanx to everyone
after delve into msdn i found
Header:Declare in Schannel.h;Schnlsp.h
so rplacing Schannel.h by Schnlsp.h my program compiled
|
|
|
|
|
|
Is your _WIN32_WINNT defined? It should be 0x0400 at least.
"tous les sifflets des trains, toutes les sirènes des bateaux
m'ont chanté cent fois la chanson de l'Eldorado"
rechi+
|
|
|
|
|
Hello,
In my MFC application, I am having a problem with my listview's items. They don't show. It looks like they are there because when they load the scroll bars appear.
The following code is OnCreate() where I Initialize the listView:
int CTopRightView::OnCreate(LPCREATESTRUCT lpCreateStruct)<br />
{<br />
if (CView::OnCreate(lpCreateStruct) == -1)<br />
return -1;<br />
<br />
SetWindowLong(GetListCtrl().m_hWnd, GWL_STYLE,<br />
WS_VISIBLE|WS_CHILD|LVS_LIST);<br />
<br />
COLORREF c = PALETTERGB(200, 70, 130);<br />
GetListCtrl().SetBkColor(c);<br />
<br />
smallImageList.Create(16,16,false,1,0);<br />
<br />
HICON hIcon = ::LoadIcon(AfxGetResourceHandle(), <br />
MAKEINTRESOURCE(IDI_ICON3));<br />
smallImageList.Add(hIcon);<br />
<br />
GetListCtrl().SetImageList(&smallImageList, LVSIL_SMALL);<br />
<br />
return 0;<br />
}
And this piece of code adds an item to the listview:
<br />
LV_ITEM lvItem;<br />
::memset(&lvItem, 0, sizeof(LV_ITEM));<br />
lvItem.mask = LVIF_TEXT|LVIF_IMAGE|LVIF_STATE;<br />
lvItem.state = 0;<br />
lvItem.stateMask = 0;<br />
lvItem.pszText = GetNTS(GetDocument()->fileName);<br />
lvItem.iItem = GetDocument()->fileCount;<br />
lvItem.iImage = 0;<br />
<br />
GetListCtrl().InsertItem(&lvItem);
Anybody might know what I am doing wrong?
TraileR ParK LifE 4Ever
|
|
|
|
|
/* Trucker */ wrote:
SetWindowLong(GetListCtrl().m_hWnd, GWL_STYLE,
WS_VISIBLE|WS_CHILD|LVS_LIST);
There's a much simpler way to do this, and you only have to do it once:
BOOL CTopRightView::PreCreateWindow(CREATESTRUCT& cs)
{
cs.style |= LVS_LIST;
return CListView::PreCreateWindow(cs);
} What does InsertItem() return?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Hi David,
InsertItem() returns a positive value if successful or -1 otherwise.
TraileR ParK LifE 4Ever
|
|
|
|
|
So is it returning -1 in this case, or is it returning a positive value yet the items still do not show up?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
it is returning a positive value but the items still do not show up.
TraileR ParK LifE 4Ever
|
|
|
|
|
I want to show multiline text in my dialog.
I have some conditions.
. If the number of lines is three or less it should come the center of the dialog vertically.
. If it exceeds 3 lines, 3 lines should appear to the user and a vertical scrollbar should come to view the remaining lines by scrolling down.
Which control should I use for the best result?
The text will be unicode format.
Thanks for suggestions.
- NS -
|
|
|
|
|
EditBox (CEdit in MFC), created with the multiline flag...
see the properties box in design mode into Visual Studio
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Is there any method to get the line height in EditBox?
|
|
|
|