|
|
Your request is a bit unclear. A dialog box is a UI component that allows interaction with a user. It matters not whether it runs on a client machine or a server machine.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
What I mean is an interface that I can type my message and send it using TCP protocol and another interface to receive the message I type.
|
|
|
|
|
hello,
Can somebody help me o how to set bitmap images on push buttons.Which function of CButton class will i have to use?and then i have to change the images a runtime.
thanks in advance
|
|
|
|
|
Please, try to use CBitmapButton. Check more information in MSDN. Another way is to use owner-draw button. There are alot in CodeProject site.
|
|
|
|
|
sayup wrote:
Can somebody help me o how to set bitmap images on push buttons
this link will help :-
http://www.codeproject.com/buttonctrl/[^]
"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
|
|
|
|
|
use CBitmapButton class...
actually when u drop a button on the dialog, it'll be set to CButton by default.
you go and change it to CBitmapButton.
After u put the Button on Dialog do this,
1.change CButton m_Button1 ---> to CBitmapButton m_Button1
2. on the button's property select "style" tab and check the "owner draw" .
2.include your bitmap file in the resource.
3. Note down the Bitmap's ID.
4.now in the oninit(), do this m_Button1.LoadBitmaps(IDB_BITMAP1);
you'll see nice colors on your dialog
Regards,
V
|
|
|
|
|
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
|
|
|
|