|
As mentioned earlier,I've no idea, if its possible.
And why you needed it ?
Browse through combo-box[^] section on CP. See , if you get any pointer.
|
|
|
|
|
OK... Thank you. This is part of customization.
- NS -
|
|
|
|
|
NS17 wrote: How will I say?
Heh, having a tough time??;P
|
|
|
|
|
M... I think CP should have a feature for specifying images. Then my need can be shown pictorially.
- NS -
|
|
|
|
|
NS17 wrote: Then my need can be shown pictorially.
just draw it
|
|
|
|
|
where?
- NS -
|
|
|
|
|
www.flikr.com ?
|
|
|
|
|
- NS -
|
|
|
|
|
in design editor, click once on the combobox to select it, then click on the combobox button to select the list height. then drop it down to adjust it
|
|
|
|
|
This is for adjusting the height of the list box, but i need to change the height of the combo box which contains the dropdown button.
- NS -
|
|
|
|
|
At design time or run time?
A combobox is comprised of two separate controls: an edit control, and a listbox. Which part are you wanting to size?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Sorry for the delay.
At run time, obviously the part of the combo box which contains the edit ctrl.
- NS -
|
|
|
|
|
As was mentioned earlier, use the SetItemHeight(-1, ...) method.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Was there message for me ? Deleted ?
Was you concerned about some code ?
|
|
|
|
|
Oops... What a fool I am!
I never think about setting index as -1. Its working fine.
Thank you very much!!!
- NS -
|
|
|
|
|
Hi all,
I want to get all printers in my company'LAN,but i just have enumd
printers that is in my computer's workgroup.There are 22 workgroups in my company's Lan.
i have enumed 3 printers by EnumPrinters like this
EnumPrinter(PRINTER_ENUM_REMOTE,NULL,1,pPrinterEnum,dwBytes,&pcbNeeded,&dwReturned);
EnumPrinters
(PRINTER_ENUM_LOCAL|PRINTER_ENUM_CONNECTIONS , NULL, 4, pPrinterEnum, dwBytes,&pcbNeeded,&dwReturned);
so how to get printers in whole LAN?
The same question was when i got computer in LAN,i also have got computer in my workgroup.
my code is here
CString strTemp;
CString strname="";
LPSERVER_INFO_101 pBuf = NULL;
DWORD dwLevel = 101;
DWORD dwPrefMaxLen = MAX_PREFERRED_LENGTH;
DWORD dwEntriesRead = 0;
DWORD dwTotalEntries = 0;
DWORD dwTotalCount = 0;
DWORD dwServerType = SV_TYPE_DOMAIN_ENUM ;
DWORD dwResumeHandle = 0;
NET_API_STATUS nStatus;
unsigned short * pszServerName = NULL;
char szOut[2048];
// Call the NetServerEnum function to retrieve information
// for all servers, specifying information level 101.
nStatus = NetServerEnum(pszServerName,
dwLevel,
(LPBYTE *) &pBuf,
dwPrefMaxLen,
&dwEntriesRead,
&dwTotalEntries,
dwServerType,
NULL,
&dwResumeHandle);
CString strTemp;
CString strname="";
LPSERVER_INFO_101 pBuf = NULL;
DWORD dwLevel = 101;
DWORD dwPrefMaxLen = MAX_PREFERRED_LENGTH;
DWORD dwEntriesRead = 0;
DWORD dwTotalEntries = 0;
DWORD dwTotalCount = 0;
DWORD dwServerType = SV_TYPE_DOMAIN_ENUM ;
DWORD dwResumeHandle = 0;
NET_API_STATUS nStatus;
unsigned short * pszServerName = NULL;
char szOut[2048];
// DWORD i;
// DWORD dwServerType = SV_TYPE_DOMAIN_ENUM; // all servers
// LPSERVER_INFO_101 pTmpBuf;
// Call the NetServerEnum function to retrieve information
// for all servers, specifying information level 101.
nStatus = NetServerEnum(pszServerName,
dwLevel,
(LPBYTE *) &pBuf,
dwPrefMaxLen,
&dwEntriesRead,
&dwTotalEntries,
dwServerType,
NULL,
&dwResumeHandle);
Thanks.
at last .forgive me ,My English is not very good.
Liu Ke
|
|
|
|
|
bios8086 wrote: EnumPrinter(PRINTER_ENUM_REMOTE,NULL,1,pPrinterEnum,dwBytes,&pcbNeeded,&dwReturned);
If Level is 1, and Flags contains PRINTER_ENUM_REMOTE, and Name is NULL, then the function enumerates the printers in the user's domain/workgroup. Do you (not your computer) belong to the other 21 workgroups? I'm not sure if this is the problem, but it would behoove you to check it out.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
DavidCrow:
Thank you for your reply. I know if Level is 1, and Flags contains PRINTER_ENUM_REMOTE, and Name is NULL, the function enumerates the printers in the user's domain/workgroup.
yes,I belong to the other 21 workgroups .Becausse i can enumerated 22 workgroups name by function NetServerEnum. i also found all of the workgroups in "Microsoft Windows Network".
So,do you have any ways to find all printers /computer ? not just only in my domain.
|
|
|
|
|
Hi All ,
I just want to check my depth in c++, so
Please Suggest some free Online Test
Regrads
Pankaj Jain
|
|
|
|
|
|
WhiteSky wrote: an you be more specific
he want online test for C++??
|
|
|
|
|
I want some links for Online C++ Test
Pankaj Jain
|
|
|
|
|
|
Have you looked at Brainbench? They offer free tests a few times per year.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hello all,
I want to pass class object in my thread.How to do it??
when i m not passing any arguments to my thread then i m calling AfxBeginThread Like this,
pThread = (CMyThread*) AfxBeginThread( RUNTIME_CLASS(CMyThread),
THREAD_PRIORITY_NORMAL,
NULL,
CREATE_SUSPENDED,
NULL);
i have made a class constituting of 2 members CString and int
i want to pass these values in my thread class
i have made a object of this class like this
commo *c;
c = new commo;
then passing its variable values
now i want to pass this object to thread class
when i m passing it to thread class like this
pThread = (CMyThread*) AfxBeginThread( RUNTIME_CLASS(CMyThread),c);
Its giving error
error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'struct CRuntimeClass *'
can anybody help me in this
thanxs in advance
|
|
|
|
|