Hello, Can anyone tell me how the coordinate system works for a dialog window. Is the origin at the upper left of the Dialog window? I have an application that will require me to use X, Y coordinate data designed for a Dos window and apply it to a Dialog window, in a Dialog application. Also, can you open multiple Dos windows within a Dialog application??... if so it may make it easier for me to use the older style code. :) Jerry
jerry1211a
Posts
-
X,Y Coodinates: Dos Windows and Dialog Windows -
Setting Text Controls X and Y Position in a Dialog WindowThank You... Have a good day. :)
-
Setting Text Controls X and Y Position in a Dialog WindowI can use that Ok, but I need to get the device context for the dialog I created. Is there a call to get the device context? Thanks. Jerry
-
Writing Text, Formatted Strings, to a Dialog Window.Hello, I have a application where I need to write a lot of labels and data to a window. The labels and data are located on the window using X, Y coordiates. It would be easier not to use controls I think, since labels and data need to be placed dynamically on the dialog window, and there is a lot of data. I think it would be easier to write to the window much like a dos window. Question: At this point I have created a simple dialog window, but wish to write to it as indicated above using X, Y coordiates. How do I do this? :) Jerry
-
Setting Text Controls X and Y Position in a Dialog WindowActually what I have is a dialog window with no controls at this point. I want to write text, numbers, etc to the window, using X, Y coordinates. I thought I could do this but have forgotten how... :) Jerry
-
Setting Text Controls X and Y Position in a Dialog WindowI have a Visual C++ application running in Visual Studio.net. It will have numerous dialog windows that will display labels and data. The labels and data will be displayed in Text Controls. There are IDC_XXX names for the labels and data. What I need to do is dynamically place the labels and data on the Windows dialog given X and Y coordinates. I cant use a static dialog in my rc resource file. QUESTION: Can I move the controls on the dialog given X, Y coordinates? If so, can someone tell me how this is done??...and how the X, Y system works in a dialog window. Where is 0,0 etc...?? Thanks, Jerry :)
-
Simple Picture Control UsageThank you for your help. Jerry
-
Simple Picture Control UsageOk.
-
Simple Picture Control UsageHello. I have added a picture control to my dialog application resource file. I dont know how to access it at run time. I thought you would need a pointer, in the same way you access a Edit control: CEdit *p = GetDlgItem(IDC_EDT); p->whatever, etc. So I need a pointer to the control I assume in order to send an image to it. Can anyone help. Jerry
-
Creating a Picture Box ControlActually I want to use a Picture Control. Jerry
-
Creating a Picture Box ControlCan someone give me a simple example of accessing and sending a image to a picture box control at run time?? :) Jerry
-
Dialog Application-Adding Color to Display DataOk I will take a look at that...thanks, have a good day. :) Jerry
-
Dialog Application-Adding Color to Display DataA text control. Jerry
-
Dialog Application-Adding Color to Display DataHi, I have a Dialog application. In some cases I am displaying data in the main dialog by accessing data in an array: str2.Format("%02d\t, m_Parse.mChannel[i].m_SV); str+=str2; SetDlgItemText(IDC_SAT, str); etc. etc. What I want to do is to have some of the data displayed in different colors other than black. How can I set the color of some data before displaying it? Can someone help me out? :) Jerry
-
::DeleteObject(hbmpOld);Thanks...
-
::DeleteObject(hbmpOld);Hello, Sometimes when looking at C++ code I see member function code that contains a statement(s) with 2 colons as shown below: HRESULT CSomeClass::OnDraw() { //2 COLONS HERE -> ::DeleteObject(hbmpOld); } What does the resolution operator refer to inside the function? Thanks, Jerry :)
-
Handle to Dialog, In Dialog ApplicationHi, I am designing a simple dialog application in VS.net. In the dialog class that is created, I call a class of my own, that is not derived from any MFC class. My class needs access to an Edit control in the main dialog. It looks as if my class needs a handle to the parent class, hlg, in this case the dialog window. QUESTION: How do I find the parent, main dialog, parent window?? I have been trying to find it while setting breakpoints in the debugger. Thanks. Jerry
-
Enable Profiling.Hello. I am working on a console C project under VS.net. I want to measure execution times between lines of code. I have looked over the documentation to try to set up "ENABLE PROFILING" on my project. I dont understand how to set it up. Can anyone help me out? Or point me to some examples where it is used. :) Jerry
-
Tools to Measure Run TimeHello, I am running a simple C console application in VS.net. I want to be able to measure the run time between certain lines of code, and also the time required to run the entire application, etc. Are there any tools/libraries that I can add to my program to do this? Will the debugger allow me to do some of this? :} Jerry
-
Setting color of text with printf()Ok thanks, I got it all working. :) Jerry