|
How one can change the shape, i.e. look and feel of the window using MFC code ?
Can you give me an example of making a Round or Elliptical window ?
|
|
|
|
|
|
Hi!
I would like to be notified when a user presses CTRL+A in an Edit control.
I derived the OnKeyDown function, but I received the notification when the user presses CTRL then when he presses A.
How to be sure that the CTRL key has been pressed when I receive the notification when the A key is down?
Thks in advance!
Appstmd
http://www.appstmd.com
|
|
|
|
|
Use GetKeyState within your handler for the A key being pressed.
Brad
|
|
|
|
|
|
Hi,
I would like to design a Visual application that can display external input information from the sound card.
I only really have experience of C and was wondering if there are any tutorials to help design a sound application?
Could someone also recommend a good, free C++ compiler / programming software.
|
|
|
|
|
|
I am sending a file through a WLAN card and from one pc to another. How can I save a file that have been received in the receiver PC? I don't know actually how to use VC++ to save a file in a computer either...
semnanian
|
|
|
|
|
wrong group
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
One solution is CreateFile().
Kuphryn
|
|
|
|
|
Hello,
I assume that the client pc has to do the saving by itself. When you are using MFC try CFile.
If you(host) have to save the file on the client pc, try some ftp.
A student knows little about a lot.
A professor knows a lot about little.
I know everything about nothing.
|
|
|
|
|
This is really disturbing as I only have this problem with some themes (including the standard themes).
When I draw text using DrawThemeText and theme data for "Button , then the font is mismatched sometimes. Using the theme "Watercolor", the font is just like it should be. But with standard XP themes for instance, the font is System. You know.. the butt ugly font.
What am I missing here!?
I am using the WTL theme classes, and I did try using the raw API. In both cases I get the same result. If I do this:
hTheme = OpenThemeData(m_hWnd, L"Button");
DrawThemeText(hTheme, hdc, BP_PUSHBUTTON, BPS_NORMAL, CT2CW(szText), -1,
DT_VCENTER | DT_CENTER | DT_SINGLELINE | DT_WORD_ELLIPSIS, 0, &rcClient); I end up with an ugly text drawn with the System font.
Help. Please?
--
"We shall crush you down to the point,
where there is no coming back,
things will happen to you from
which you could not recover if you
lived a thousand years, a thousand years."
|
|
|
|
|
|
|
hello,
how can i get the total no of pages printed in one print job in vc++ /win32 appln.
please give some code ...
|
|
|
|
|
Search for Q196805 in MSDN there is a Article about print monitors and some sample code
if you want to Download the sample code
Click ME[^]
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
The GetJob API call will give you number of pages and copies - although for truely rteliable page counts you will need to dissect the spool file.
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
hello ,
how to get the full path of the printed file in vc++ ?/?
please give the explaination with code example
panda
|
|
|
|
|
Search for Q196805 in MSDN there is a Article about print monitors and some sample code
if you want to Download the sample code
Click ME[^]
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
hello all,
how to gerister a dll in vc++ editor ,in command prompt and in run dialog ?
panda
|
|
|
|
|
use RegSvr32 file.dll
if you have the Code then open it in VC and goto Tools and Register Control
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
thanks monty sir,,,,
skpanda
|
|
|
|
|
MailMonty wrote:
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
R u in liging process or learning process?
I was born intelligent Education ruined me!.
|
|
|
|
|
I'm trying to create a SDI MFC application with two CViews for a game(level editor).
One main view where you can see the level map and a secondary view to the right where you can select tiles to place in the level map.
I was wondering what's the best way of creating these two views.
The view that's created by the framework takes up the whole window, is there any way to have it be a certain size?
I don't want to use splitter windows(unless you can have a splitter that can't be moved, I want fixed sizes for the windows).
|
|
|
|
|
Use the Splitter Window
and to stop the Resizing of the Splitter window
Derive a class from CSplitterWnd
and Override HitTest and return 0 from it
<
class CExSplitterWnd : public CSplitterWnd
{
.....
virtual int HitTest(CPoint pt) const;
....
};
int CExSplitterWnd::HitTest(CPoint pt) const
{
return 0;
}
>
this will freeze the frames
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|