|
What size did you give to the dropdown menu when creating the control in the resource editor ?
try
CComboBox* pEdit = (CComboBox*)GetDlgItem(IDC_TOLT);
pEdit->AddString("asd");
pEdit->SelectString(-1,"asd");
If you still do not see the "asd", then go in the resource editor, position your mouse cursor on your control (on the block with the arrow on the right), your cursor will change to a double vertical arrow, then click and hold the button down and increase the size of the dropdown menu of your combobox.
~RaGE();
|
|
|
|
|
This is a common mistake every one makes when working with combo box for the first time, i dont know from where did the microsoft got the idea for sizing the combobox.
The World is getting smaller and so are the people.
|
|
|
|
|
I was trying to develop a application to be able to show different documents
like .doc, .ppt etc in its view. So I decided to use the Browser Control for
the same and I was able to successfully load (navigate) the different
documents. My next requirement is to draw some custom text and graphic on
top of the loaded document window but I was not able to hook any message to
do the same. It seems that once the document is loaded, it is that
application which does all the message handling like paint etc. Is there any
way out for solving this problem. Thanks in advance for any help on this.
|
|
|
|
|
If your using an IE window try looking at the DOM. There are many articles on the web using DOM from a C/C++ program
|
|
|
|
|
Hi, I want to add an icon left of the menutext in my menues.
For example I have an icon in my toolbox and an equal text entry in my menu. So it would be nice if there is text and additionaly the icon of my toolbox in the menu.
Unfortunately I have no idea how to place an icon in a menu.
If anybody can help me, write an answer please.
SuperRon
|
|
|
|
|
change the menu items style to owner draw style,then draw it yourself.
Check out the BCMenu code for detail.
I am seeking...
For what?
Why did you ask me for what? I don't know!
|
|
|
|
|
Ok, but how can I change the menu items style? And how can I connect the icon with the menu item then?
Where do can I find the BCMenu code?
Please, help me again
|
|
|
|
|
Get the menu handle or CMenu object(before the menu popup),use ModifyMenu to assign every menu item MF_OWNERDRAW style.
And then your windows will be receive WM_MEASUREITEM and WM_DRAWITEM message,in the message handler
you measure your menu item size and draw it as your wish. If you use MFC,it would be more easy. MFC
will call your CMenu::MeasureItem and CMenu::DrawItem() automatically.
BTW:
you can find BCMenu in CP.
I am seeking...
For what?
Why did you ask me for what? I don't know!
|
|
|
|
|
Thanks, I found BCMenu, and it works pretty nice.
|
|
|
|
|
Hi,
I have created a Named Pipe with a NULL DACL security descriptor to allow everyone to access the pipe on a server application and have also created a client application to connect to it. All works fine if client and server are on the same machine but i get a
0x0000052e Logon failure: unknown user name or bad password.
When using a remote client.
Anybody shed some light on this will be appreciated.
Ceri
|
|
|
|
|
If you specify NULL as DACL, the named pipe gets a default security descriptor. The ACLs in the default security descriptor for a named pipe grant full control to the LocalSystem account, administrators, and the creator owner. They also grant read access to members of the Everyone group and the anonymous account.
So check if u can communicate with client machine with administartor rights.
Else set named pipe's security descriptor by calling the SetSecurityInfo function.
Chill,
The chosen One
|
|
|
|
|
No, that is incorrect. That's true if you specify NULL for the lpSecurityAttributes to CreateNamedPipe. I am creating a security attribute structure but the DACL for the security descriptor is NULL - see below
<br />
<br />
<br />
SECURITY_ATTRIBUTES saPipeSecurity;<br />
PSECURITY_DESCRIPTOR pPipeSD = NULL;<br />
<br />
memset ( ( VOID *) &saPipeSecurity, 0, sizeof ( SECURITY_ATTRIBUTES) );<br />
<br />
if ( ! ( pPipeSD = ( PSECURITY_DESCRIPTOR) <br />
( malloc ( SECURITY_DESCRIPTOR_MIN_LENGTH)) ) )<br />
return FALSE;<br />
<br />
if ( ! InitializeSecurityDescriptor ( pPipeSD, <br />
SECURITY_DESCRIPTOR_REVISION) )<br />
return FALSE;<br />
<br />
if ( ! SetSecurityDescriptorDacl ( pPipeSD, TRUE, ( PACL) NULL, FALSE) )<br />
return FALSE;<br />
<br />
saPipeSecurity.nLength = sizeof ( SECURITY_ATTRIBUTES);<br />
saPipeSecurity.bInheritHandle = TRUE; <br />
saPipeSecurity.lpSecurityDescriptor = pPipeSD;<br />
<br />
<br />
HANDLE hPipe = CreateNamedPipe("\\\\.\\pipe\\PipeTest",PIPE_ACCESS_INBOUND ,PIPE_TYPE_BYTE,PIPE_UNLIMITED_INSTANCES,4086,4086,20000,&saPipeSecurity);<br />
<br />
|
|
|
|
|
Hi CPians,
I'd like to write a small dialog app doing a kind of Search in File just like the one in Visual C++. Does anybody know how this works ? The search is really fast, so I think there must be another solution than loading the file as text in a CString and applying the Find method
Thanks for the advices
~RaGE();
|
|
|
|
|
One solution is file-mapping.
Kuphryn
|
|
|
|
|
hello
can some body tell me about TAPI 3 COM based working in Visual C++. i am doing "internet telephony" project. where i need that codec for interactive voice support using Visual C++ 6 and TAPI 3.
thanks
|
|
|
|
|
|
Hello,
I' ve downloaded the complete February 2003 platform SDK and am now trying to install it on my WinXP SP1 box. But when I run the setup I get an error saying "Only XMLSchemaCache schema collections can be used. The xml is not valid". I've searched Google and Microsoft but came up with nothing.
Can anyone help me with this?
Thanks,
Arjan.
|
|
|
|
|
it does not support XP home edition
I am seeking...
For what?
Why did you ask me for what? I don't know!
|
|
|
|
|
I have Professional!
Arjan.
|
|
|
|
|
Try installing MS XML 4, and making sure that works. It may be that the installer (which I believe uses XML) cannot cope with the version of the MS XML stuff you have installed.
Having said that, I've installed the same SDK from CD (I have MSDN) on WinXPSP1 with no problems.
Steve S
|
|
|
|
|
hi
can some body tell me about codec support in UnimodemV for voice support. i am doing "internet telephony" project. where i need that codec for interactive voice support using Visual C++ 6 and TAPI 3.
thanks
|
|
|
|
|
you won't be able to if u ask questions like that!
Don't try it, just do it!
|
|
|
|
|
i would like to know how do i convert different image files to BMP format and again back to original format from BMP without using MFC.
|
|
|
|
|
Check out CxImage on Code project, you will find that very usefull.
The World is getting smaller and so are the people.
|
|
|
|
|
Thanks for the reply.but the code given there is in c++,whereas im working in Win32.Plz tell me if u find any thing code or reference which converts the files ...(Win32)..
|
|
|
|