|
http://msdn.microsoft.com/msdnmag/issues/02/09/CQA/default.aspx
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
hi everyone,
i want to learn to create gui like the one in norton antivirus(with fancy buttons and animated menu..etc) or any gui that's similar to that.. can someone suggest me a good place to start? thx in advance..
merry xmas!
|
|
|
|
|
www.codeproject.com
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Cheers
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Yeah!
I don't see why people don't search CodeProject before asking?
I mean, CP is full of MFC stuff and much is GUI stuff!
Cheers and mary christmas to you and everyone else!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
As has been said, this site is full of examples of all that stuff. Plus one of our regulars worked on it, so maybe if you get stuck you should ask specific questions here.
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Hello!
I'm taking a couple of functions from a windows program and putting them in to my console application (with mfc) but to call one function I need a pointer to the output device. In windows this pointer pointed to a list box, but since consoles don't have those I want to write to the basic output device (like cout does). I've got
ostream* Console = NULL;
Console = ???
I can't find out how to tell the pointer that it points to the console window. Is this possible?
The functions simply get the atached printers and display the text strings.
Obseve everything, remember more...
|
|
|
|
|
Check this,
BOOL bFlag = AllocConsole();
HANDLE hnd =GetStdHandle(STD_OUTPUT_HANDLE);
DWORD dw = GetLastError();
unsigned long i;
WriteConsole(hnd,"test", 4,&i , NULL);
|
|
|
|
|
|
I believe the top/left lines are a dark grey and the bottom/right ones are a light grey.
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
No, it really alternates every pixel (diagonally) from white to light gray.
comrade
http://comrade.ownz.com/
Souz nerushimiy respublik svobodnih
Splotila naveki velikaya Rus
Dazdrastvuet sozdanniy volei narodov
Ediniy, moguchiy Sovietskiy Souz!
|
|
|
|
|
Use a pattern brush. see CBrush::CreatePatternBrush() or CBrush::CBrush(CBitmap* pBitmap) in MSDN[^] for more information.
CPUA 0x5041
Sonork 100.11743 Chicken Little
"So it can now be written in stone as a testament to humanities achievments "PJ did Pi at CP"." Colin Davies
Within you lies the power for good - Use it!
|
|
|
|
|
I want wait for 20 microseconds, How can I get this??
|
|
|
|
|
Count to 20 really fast ?
::SetTimer allows you to set a timer in 1,000ths of a second.
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
You can't wait 20 microseconds using standard Windows timer. Standard Windows API has resolution of 1 ms, and AFAIK in reality it is even less precise. Mutlimedia applications use so called multimedia timer, so if you have a look at DirectX SDK (sorry, I'm not an expert in it), you will find more.
Вагиф Абилов
MCP (Visual C++)
Oslo, Norway
Hex is for sissies. Real men use binary. And the most hardcore types use only zeros - uppercase zeros and lowercase zeros.
Tomasz Sowinski
|
|
|
|
|
You can measure short intervals using QueryPerformanceCounter and QueryPerformanceFrequency .
I doubt that there is anything you can do in application code to delay an exact 20 microsecond interval. What do you need this for?
Software Zen: delete this;
|
|
|
|
|
Spinlock. You are writing a kernel mode device driver? If not, and you really need to do this in user-land, you should probably have a look at one of the many available realtime OS'es.
Please note, you'll get no friends from using spinlocks - tying up CPU resources for no other purpose than waiting is more like the MS-DOS era, where resources were not shared and the only (available) machines that had multitasking was the Amiga and Unices.
|
|
|
|
|
I want to have a dialog inside my CTabCtrl send a message to the main dialog. But how I do that? I have the dialog as an object under my tab class which is under my parent window. I'm using MFC and the parent class is a CWnd under CWinApp.
|
|
|
|
|
::SendMessage(::GetParent(*this), .........
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Hi,
I have a Dialog based application. Dialog is having CDateTimeCtrl as well as some other controls. I put the tab order for all controls so as to navigate through keyboard tab.
When I clicked on CDateTimeCtrl drop down arrow it shows me Month calendar, when I do selection of other date or cancels on calendar control, focus gets disappear (OnSetFocus() function gets called but the selection gets disappears that makes feel like the focus is not on the control) . Now if I press tab the focus goes to next subsequent control and when come back to the same CDateTimeCtrl control through tab, it doesn't get selected. (Here also the OnSetFocus() function gets called but the control doesn’t get highlighted it appears like deselected )
Can anybody of you tell me, how can I select the Date inside the CDateTimeCtrl?
I tried to handle CDateTimeCtrl's OnKillFocus() OnCloseup(), OnSetfocus() etc. but the highlighting of date is not possible. Is there any function available by which date (day/month/year) can be highlight?
Thanks in advance,
- Vijay
God is Great
|
|
|
|
|
dear all,
i want to use CreateProcessAsUser function along with LogonUser func in my mfc dialog based app.
should i close the token after ceating process or will it be closed automatically when process ends.
what is the ideal scenario?
|
|
|
|
|
If you acquire a resource, you should also release it. The target process knows nothing about resources in your process.
|
|
|
|
|
|
If you use std::string, then you can write your own functor and use std::find. Hell, you can write a functor and use std::find with a char *, a pointer is a random access iterator.
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|