|
Hello,
The solution 2 (class YourBasicInterface) is interesting. I will consider this. Thanks!!
Maxwell Chen
|
|
|
|
|
Can som1 explain me the method of how TA_TOP is calculated . ?Have any1 any idea abt it ...
Regards
|
|
|
|
|
Anonymous wrote:
Have any1 any idea abt it ...
I have no idea what you are talking about. Be a bit more elaborative.
Steve Mayfield: "Coding in VB is like riding a tricycle...once you figured out how to peddle, its really hard to fall off."
My Articles
|
|
|
|
|
Okay ... and Sorry ... thing is that I want to replicate wat I have drawn onmy Window with the help CDC Funcs in another lang. I am following the same source code. Now at point I am stuck becoz in the code there is a statement ....
pDC->SetTextAlign(TA_TOP);
How Do I calculate it ... What is exactly the bounded rectangle ... how i get its specs ???
Regards
|
|
|
|
|
Looks like you want to get the dimensions of text or its bounding rectangle according to the selected DC. You can use CDC::GetTextExtent function for this.
If you are confused about TA_TOP value, check it Here[^]
Steve Mayfield: "Coding in VB is like riding a tricycle...once you figured out how to peddle, its really hard to fall off."
My Articles
|
|
|
|
|
Hi,
The subject may be a little off, but anyways...
I wonder how I can make a CEdit behave "properly" in a CWnd. I want it to behave the way it does in a CDialog.
When I place a CEdit in my CWnd, I can't use delete on it, I can't use tab to jump between ctrls and I can't select the text in a CEdit(yes, I've tried using setsel(0,-1)).
So I wonder if anyone please can help make my CEdits behave like in a CDialog.
Regards
Markus
|
|
|
|
|
You need to implement the IsDialogMessage function in a PreTranslateMessage handler. See IsDialogMessage in the docs for more information.
onwards and upwards...
|
|
|
|
|
If I understood you right, I'm supposed to override the PreTranslateMessage handler in my CWnd, and call the IsDialogMessage from there, like this:
BOOL CMyWnd::PreTranslateMessage( msg )
{
if( IsDialogMessage( msg ) )
return TRUE;
else
return CWnd::PreTranslateMessage( msg );
}
Sadly it didn't work, I still can't use delete or tab in my CEdit. And the messages doesn't come to the function, at least not what I can see.
Did I misunderstood you, or have I done something wrong?
|
|
|
|
|
How can i find out what the current view mode (details, thumbnails, etc.) of a CFileDialog is?
I want to save the current mode so when i re-open the dialog i can open it using the same mode. I do know how to open a CFileDialog in a specific view mode but i don't know how to ask the dialog what its current view mode is.
Any help would be greatly appreciated.
Thomas
|
|
|
|
|
1.what is top-level window?
2.how to enumerates all top-level windows?
I love you not for whom you are, but who i am when I'm by your side
|
|
|
|
|
gohappy_1999 wrote:
1.what is top-level window?
A top-level window is any window that is not a child window. Top-level windows do not have the WS_CHILD style.
gohappy_1999 wrote:
2.how to enumerates all top-level windows?
You can do that by using EnumWindows API
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
Thank you very much!
I love you not for whom you are, but who i am when I'm by your side
|
|
|
|
|
I have some problems to make a network component.
It is a "TIME_WAIT" state on client socket.
When the socket is in "TIME_WAIT" state, it cannot connect into any remote server.
How can I avoid "TIME_WAIT" state?
Or, is there any function that can check a socket in "TIME_WAIT" or not ?
I disconnect all sessions using "DisconnectEx" function for re-using socket.
And, all sockets are pre-binded.
There are no problem when I disconnect client from server.
But, client disconnects itself and then socket falls in "TIME_WAIT" state.
I tryed to remove that state, but I can't. (failed..all)
I applied handshaking routine, LINGER option and changing into blocking mode..
As you know, TIME_WAIT state's duration is so~~~~ long!!
So, I want to know, how to check it or avoid it. ( TIME_WAIT state )
NOVICE FOREVER!!!
|
|
|
|
|
I need information ( mathematical basics ) about JPEG and JPEG2000 file formats . How can I convert BMP file to JPEG one . I have the all information I need about BMP . But I can't find info about JPEG . Could You recommend me some articles in Internet , devoted to JPEG construction .
|
|
|
|
|
A good starting point is http://www.wotsit.org/
"An education isn't how much you have committed to memory, or even how much you know. It's being able to differentiate between what you do know and what you don't." - Anatole France
|
|
|
|
|
|
i m using NetUserAdd()keeping level as 1 ie USER_INFO_1.in this structure i have to keep usri1_priv as USER_PRIV_USER.it has added the user.with the specified user name and password i can log in my comp.but when i m checking its " member of" (in the manage)it is showing me nothing.why
|
|
|
|
|
|
Well how about sharing it with the rest of the community?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
sorry Mr David Crow for not replying u in time.Actually i was trying to include a user in a local group without creating the user account
|
|
|
|
|
FYI
George Shepherd , Windows Forms FAQ
http://www.syncfusion.com/faq/windowsforms/Default.aspx
|
|
|
|
|
spammers are not welcomed here...
you didn't even care to make the url as a link
absolutely stupid !
hey, you know what ? you web site is really horrible
you got my 1... poor guy, anonymous moreover
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Whats About ThatsAlok FAQ
|
|
|
|
|
2 things :
- it is a codeproject one, so, it IS good by the fact,
- it is in construction, which means it's not ended...
better that way ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote:
better that way
Yeap, You are Right
|
|
|
|