|
What about the fonts? Are you setting the font on either the dialog or tab control?
The thing that comes to mind is this curly little 1 liner (hidden away in the help for MapDialogRect):
Microsoft wrote: In most cases, the base units for the dialog box are the same as those retrieved by using the GetDialogBaseUnits function. If the dialog box template has the DS_SETFONT style, however, the base units are the average width and height, in pixels, of the characters in the font given by the template.
In other words, if no font is set for the dialog box, the dialog units are based on the size of the system font. If however, a font is specified, then the Dialog Units are based on the size of _that_ font.
|
|
|
|
|
Can anyone point me to documentation on the possible settings for
dwStyle, dwTabbedStyle, dwControlBarStyle in
CDockablePane ???
I cant seem to find them online anywhere.
I'm ultimately trying to either make the tab bar for the Console Window (in the default MFC app) disappear, or at least bring the tabs to the top, and set it to a single tab.
So far everything I've tried has led to not being able to create empty window failures at run time.
Thanks...
|
|
|
|
|
The company I work for uses a software built with COBOL. This software has no API and the only way to interact with it is through its GUI.
My question is: Is there anyway to integrate with such a software without any help from the vendor? For example, if this COBOL software has tow text boxes to enter 2 numbers for addition and gives the answer, is there a way to enter the two numbers programmatically? I am not even so much concerned about the answer it provides but just to automate data entry.
Please let me know if you need clarification.
CodingYoshi
Visual Basic is for basic people, C# is for sharp people. Farid Tarin '07
|
|
|
|
|
CodingYoshi wrote: ...is there a way to enter the two numbers programmatically? I am not even so much concerned about the answer it provides but just to automate data entry.
Can you use calls to FindWindow() and SendMessage() ? Not bullet-proof, but it might get you by.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
use spy++ tool to find, does cobol window provide you any windo handle
|
|
|
|
|
ThatsAlok does cobol window provide you any windo handle
How do I find out? If I can get a handle to the window, how would I go about finding the child controls to send keystrokes to? For example, how do I control sending name to a text box which accepts name of new employee or something similar.
CodingYoshi
Visual Basic is for basic people, C# is for sharp people. Farid Tarin '07
|
|
|
|
|
Hi I am trying to create a server that would accept and receive message from multiple client. But i am receiving SOCKET_ERROR while my server seems to accept the multiple connection. Could anyone correct my code.
Here is the code I wrote..
CMysocket m_sListenSocket;
<pre>void CLocalDlg::OnAccept(void)
{
CMysocket *pSocket = new CMysocket;
if(m_sListenSocket.Accept(*pSocket))
MessageBox("Connection Accepted");
}
For receiving:
<pre>void CLocalDlg::OnReceive(void)
{
CMysocket *pSocket = new CMysocket;
char *pBuff = new char[1024];
int stlen = 1025;
int iRcvd;
iRcvd = pSocket->Receive(pBuff, stlen);
if(iRcvd ==SOCKET_ERROR)
MessageBox("Received socket error");
else
MessageBox("Message Received properly");
}
|
|
|
|
|
Did you preview your post? The <pre> tags are not working.
reddy07 wrote: iRcvd = pSocket->Receive(pBuff, stlen);
What is pSocket connected to?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Yes, tags are not working. I posted in hurry. I will take care next time when i post.
Thanks David!!! Yes, I realized every time OnReceive is invoked new pSocket is created. Then, how to initialize pSocket saying it is previously connected.
|
|
|
|
|
Alo,
Pero perdon.
Gracias.
Adias
Troy
|
|
|
|
|
Hello to everyone,
I was wandering how to create a framework in C++ and a search on Google for some tutorials but I wasn't able to find anytihng
Can anyone suggest my a good tutorial on how to create a framework?
Thanks
|
|
|
|
|
See point #2 in this post[^]
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Sorry
I want to create a web content filter program for Windows Server 2008 using the WPF[^] with plug-in support.
I already created plug-ins in the form of DLLs and loaded them dinamically but now I wanted to create a framework to support the plug-ins (something like the windows API for Win32 applications)
|
|
|
|
|
Stifly wrote: but now I wanted to create a framework to support the plug-ins
So what? Go ahead. What is stopping you?
|
|
|
|
|
I don't know exactly how to do it and I couldn't find a guide or a tutorial, can anyone tell me were I can find one?
|
|
|
|
|
The reason you are not getting answers is because there is NO answer to your question. Only you can come with the answer to your question. If I had the same question, I would look for examples rather than answers. For example, analyze MFC to see what it offers and how. MFC is a good framework and will give you many ideas. You can also, study the architecture of .NET (although) some think .NET is not a framework.
You can also read the book on CSLA by Rockford Lhotka who creates a whole framework within the book.
Once again, this will just give you fundamental ideas--like a book on OOP--however, creating a good framework is more of a style of thinking rather than following a strict methodology. Art is involved in addition to engineering.
Good luck!
CodingYoshi
Visual Basic is for basic people, C# is for sharp people. Farid Tarin '07
|
|
|
|
|
Tanks to every one for the help
|
|
|
|
|
Stifly wrote: I don't know exactly how to do it
I don't know what that means. However in case you don't know what to do because you don't know what a framework is, see here[^]
|
|
|
|
|
Dear All,
I want to add Combo boxes in one row of a CListCtrl. Is this possible ? If possible can anyone help me to add the ComboBoxes in one row of a CListCtrl.
Expecting your replies. Many thanks in advance.
Bhanu
|
|
|
|
|
bhanu_8509 wrote: I want to add Combo boxes in one row of a CListCtrl. Is this possible
Easiest with a more advanced list control - I suspect one or more of the CodeProject articles about list controls[^] could sort you out.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I cannot find useful information for the comboboxes to be added in a row. The implementation is given for a column. Please help me.
|
|
|
|
|
Hi,
I have a program that performs a lengthy operation (2-3 minutes), so by the time it's finished, the user would have minimized it and/or switched focus. When the operation is finished the program displays a dialog with DoModal. But the user can't see that because my program is minimized. I've seen programs that flash on the taskbar in this case.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Maybe try using FlashWindow[^] or FlashWindowEx[^], however i am not sure how these work for a minimized window.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
|
Hi all,
I am new in this field. I want to know which book will i follow for mfc program, using VS 2005 as a beginner. Please refer the author name.
Thanks to all
Munna
|
|
|
|