|
I've created a como box in pure Win32 API. But when I click to showthe list it doesn't appear, well , it does, but its heigth is ~2 pixels high
How do I change the heigth ofthe drop-down menu in my Combo box control?
Rickard Andersson
Here is my card, contact me later!
UIN: 50302279
Sonork: 37318
Interests: C++, ADO, SQL, Winsock, 0s and 1s
|
|
|
|
|
hi,
work on WM_DRAWITEM with struct DRAWITEMSTRUCT
Set CtlType and rcItem to set height of combobox.
The chosen One
|
|
|
|
|
There is only one function for setting the size of the DropWindow. Thats MoveWindow. The rectangle you move the window to includes the drop area. When the drop window is not shown, the control limits its client area to the correct height for a combo box. So just use a larger height on your rectangle when you position the window.
Roger Allen
Sonork 100.10016
Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003
|
|
|
|
|
I need to do it from the code, to attach a debugger to a process id, just the same as we can do it from the task manager when u right click a process and click debug.
Any help would be appreciated
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Check out the following API calls:-
<br />
Private Declare Function DebugActiveProcess Lib "kernel32" (ByVal dwProcessId As Long) As Long<br />
Private Declare Function WaitForDebugEvent Lib "kernel32" (lpDebugEvent As DEBUG_EVENT_BUFFER, ByVal dwMilliseconds As Long) As Long<br />
Private Declare Function ContinueDebugEvent Lib "kernel32" (ByVal dwProcessId As Long, ByVal dwThreadId As Long, ByVal dwContinueStatus As Long) As Long<br />
I only have this in VB - I'm guessing you want a C/C++ example...
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
Thanks for your help
but i already checked these APIs, and the prob is that im not developping my own debugger i just want to attach to the VC++ debugger. whereas these APIs are issued by the debugger.
Hope you get what i mean
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Ah. You mean that you want your application to attach the VC++ debugger to it, rather than attach your program AS the debugger.
Will "MSDEV -p procid -e procid" not do this?
Steve S
|
|
|
|
|
Exactly!
Thank you all for your help
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
If you want to use the same debugger as configured on the system for just-in-time debugging (which I think is the same as the one used by Task Manager), you can find the path in the Debugger value of the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug.
|
|
|
|
|
Which, by an amazing coincidence is where I checked the command line...
Steve S
|
|
|
|
|
Hi,
i have seen code samples and i would like to know the following
what is the difference or why is it better or why would someone
register a window class and then create a window and then lay a dialog over it instead of just registering the class and creating a dialog?
is there an advantage?
thanks
ps i hope someone understands my question....
|
|
|
|
|
I build MFC project,
and want now to add html-help to it.
Evedently there is instruments how to convwert resource.h
and project.rc
to html-help project.
Or else way of assighning resources IDs to html-help.
Can you advice better one?
For html files is it better to use extenal editor?
Need be connected to system of html-help creation ?
what is the better practice in this case?
thanks.
|
|
|
|
|
Could you be more precise?
What do you want to do, contextual help or "standard" help?
New, what do you own the world?
How do you own disorder?
|
|
|
|
|
I declared a varible as a SYSTEMTIME type in my code as:
SYSTEMTIME st;
how to make its value one minute later or one hour later?
Thank you in advance!
|
|
|
|
|
st.wMinute += 1; or
st.wHour += 1;
"The folly of man is that he dreams of what he can never achieve rather than dream of what he can."
"If you think education is expensive, try ignorance."
|
|
|
|
|
yep. but watch for 25th hour an 61st minute . I played with that stuff for an hour until I realized my horrible mistake
|
|
|
|
|
That sounds a little difficult,I think.
You should care about many things, such as the rolling-over problem, including second to minute,minute to hour,hour to day, day to month, month to year and so on, in which you should also consider the leap problem, whether there are 28 days, 29 days, 30 days, or 31 days in a month.
Can you bring out a better way?
Here is one I can't still have enough condidence.
Convert the varible into a FILETIME or LARGE_INTEGER varible, and then increase the new varible's value. At last convert the varible back.
Herein we know "FILETIME structure is defined as a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601", however I don't know the definition of LARGE_INTEGER
Can somebody tell me some better ways or my last quetion?
|
|
|
|
|
if you look to the documentation for SYSTEMTIME :
It is not recommended that you add and subtract values from the SYSTEMTIME structure to obtain relative times. Instead, you should
- Convert the SYSTEMTIME structure to a FILETIME structure.
- Copy the resulting FILETIME structure to a ULARGE_INTEGER structure.
- Use normal 64-bit arithmetic on the ULARGE_INTEGER value.
instead LARGE_INTEGER you can use the __int64 on microsoft compilers
|
|
|
|
|
SYSTEMTIME sysTime;
..
..
..
CTime tm (sysTime);
tm += 60;
tm += 3600
sysTime.wYear = tm.GetYear();
sysTime.wMonth = tm.GetMonth();
sysTime.wDay..
sysTime..
sysTime..
|
|
|
|
|
Good
It is very simple!!!
Thank you!
|
|
|
|
|
The following sentence can work well for your the last five sentences.
tm.GetAsSystemTime(sysTime)
|
|
|
|
|
|
How to add right-aligned keystrokes to menu?
|
|
|
|
|
In the properties of the menu item.. in the caption field use a \t to "tab" the keystrokes.. like
ID: ID_FILE_NEW Caption: &New\tCtrl+N
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
I've tried this, but the keystrokes are not rigth-aligned.
How can I make them aligned to the right?
|
|
|
|