|
i want to move the one i copied
/\|-||\/|/\|)
|
|
|
|
|
use SetWindowPos() to move a window.
for copying a window, i really doubt you can do this...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
k
thx anyway
/\|-||\/|/\|)
|
|
|
|
|
It woudln't really be copying, per se, but couldn't you just get all the window styles and attributes from the first window and create a new window with all the same attributes? Or just make a class derived from the one you wanna copy and make a copy constructor that does all this work for you?
My articles
www.stillwaterexpress.com
BlackDice
|
|
|
|
|
all depends if we talk about run time or design time...
i think he was thinking when the program was running...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
How can i wait for 1 seconds in my program before continuing executing the code?
What function ca i use?
/\|-||\/|/\|)
|
|
|
|
|
1- Sleep().
2-
HANDLE hEvent;
hEvent = CreateEvent(NULL,FALSE,FALSE,NULL);
WaitForSingleObject(hEvent,1000);
CloseHandle(hEvent);
this is this.
|
|
|
|
|
If it's a single threaded or want to stop one thread, you can use Sleep(1000).
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
|
Hello
Try to Sleep(1000);
Andrew
|
|
|
|
|
hi, u can use this function
Sleep(milliseconds)
MFC programmer
|
|
|
|
|
You can use multimedia timer functions for more resolutions instead of Sleep()
|
|
|
|
|
PJP_PJP wrote:
multimedia timer functions
what do u mean?
/\|-||\/|/\|)
|
|
|
|
|
Use windows MutiMedia Timer functions like timeSetEvent(). This is the most accurate timer in the Windows Environment. See MSDN help.
|
|
|
|
|
Use windows MutiMedia Timer functions like timeSetEvent(). This is the most accurate timer in the Windows Environment. See MSDN help.
|
|
|
|
|
Hi,
I have to call the crystal report from VC++. The report is designed with back end SQL Server. What is the connection string to open the SQL Server from VC++ Code.
I have used SetConnect(). But it is giving a error "Cannot open SQL Server"
Can any one help me out in giving a sample code for displaying the Report by connecting it to SQL Server through VC++ Code.
Regards,
Vairamuthu.G.
|
|
|
|
|
Hi there
I'm currently doing my final year project in computer engineering. My project consists of creating a urban traffic intersection simulator (using opengl for the graphics) with vehicles travelling over the intersection. The traffic lights of the intersection will be controlled with fuzzy logic which is the main focus of my project.
I'm creating this project using visual c++ 6. I'm still a beginner with visual c++ although I've had previous experience with c++. I've created a basic windows SDI program with the help of the wizard and implemented opengl in the window.
My problem is that I want to add a tool box (dialog box) to the right-side (but inside) of the opengl-window in which various controls will be, almost like 3D studio MAX. Thus it must be created at startup and remain there all the time. Also it must be placed on the right-side of the window and not be movable / minimizable / closable. Also it must be what they call modeless, so that you can both work with it and the main window.
Any help with this tool box (dialog box) will be appreciated.
Thank you
|
|
|
|
|
hmm, it sounds you want something like a Rebar... look at this article on MSDN about Rebars:
CReBar control[^]
Hope this helps you...
|
|
|
|
|
Thanx it did.
Although I don't think I will use Rebars specifically, they seem to be a bit difficult to implement in visual c++.
|
|
|
|
|
Hi!
I would like to ask:
- is it possible/how to add a new string (id+value+caption) to the string table at run-time (not in the string editor)?
- how to change the caption of a given(existing) string in the string table at run-time?
Thank you!
|
|
|
|
|
You want to update the resource. Right?
You can use BeginUpdateResource(), UpdateResource(), and EndUpdateResource() , but not on a running exe.
this is this.
|
|
|
|
|
Use UpdateResource(..., RT_STRING, ...) .
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
How can we use InputBox in VC6...is it similar to Vb? if not how to create one...
thanks
|
|
|
|
|
"edit box"?
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
Add a dialog box to the resources. Attach a class to it. Make an edit box on the dialog. Attach a CString type variable to it. Then call it using DoModal(), check the return value. If it is IDOK, then get the CString variable from the dialog box variable.
CInputBox dlg;
if (dlg.DoModal() == IDOK)
{
CString s;
s = dlg.m_strText;
}
If you want to show a prompt also, then make a public CString m_strTitle; in the dialog class. In its OnInitDialog(), Use SetWindowText(m_strTitle) to set the title. Before calling DoModal(), set that CString variable to anything you want.
this is this.
|
|
|
|