|
Hi,
you will have a good tutorial here:
http://www.codeguru.com/columns/Kate/KG061902.html
Everything's beautiful if you look at it long enough...
|
|
|
|
|
Select the resource (dialog) where you want to add the mouse buttons to, in your resource view. Right click on the resource in the right document view. Select properties from the pop-up menu.
A new window appears, click on Control Events in the toolbar. This shows all events for all the controls in your resource.
|
|
|
|
|
Hi guys
What's the method to control a key pressed when we are working with a CFormView?
I've tried OnChar but when the key is pressed the method is not called.
Best Regards
Dr.Pi
|
|
|
|
|
|
I have the same result as with OnChar
Maybe I'm doing something wrong, and it's a silly mistake.
Thanks anyway
Dr.Pi
|
|
|
|
|
Your best chance is probably PreTranslateMessage checking for pMsg->message == WM_KEYDOWN and pMsg->wParam == VK_key_of_interest
You can also make use of GetFocus() to check which control the input would have been aimed at.
Roger Allen
Sonork 100.10016
Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003
|
|
|
|
|
Hey guys... i'm developing a C++ application, and a delphi application. they'll both run on separate machines and talk across a network via tcp/ip. Now, does anyone have any suggestions for where to start?
Thanks.
-Az.
|
|
|
|
|
Does anyone know where I can find more detailed information with examples on using IDiscMaster and related APIs, than they give in MSDN.
Happy programming!!
|
|
|
|
|
Maybe you can find some infomation from some books about Windows API function.
LeonOrient
|
|
|
|
|
Hello.
Is there a way that the Horizontal Scroll Bar in a list control is always shown. It should be disabled in the size of all the columns is less than the
control width and should be enabled if the size of the columns is more than the control width.
Regards
Prasanna <prasanna.br@siemens.com>
|
|
|
|
|
Prasanna_b_r wrote:
Is there a way that the Horizontal Scroll Bar in a list control is always shown. It should be disabled in the size of all the columns is less than the
control width and should be enabled if the size of the columns is more than the control width.
Are you aware that you are asking for something and for exactly the opposite thing ?
Check the properties of your ClistCtrl when rightclicking on it in the resource editor, here you can enable Horinzontal Scroll Bar, which has them always shown, or Auto Horizontal Scrollbar, which describes the second way you have mentioned.
~RaGE();
|
|
|
|
|
Hello,
I didnt find the option of enable Horizontal Scroll Bar in the resource editor of VC 6.0 for a List Control. I had already tried putting WS_HSCROLL in the resource file manually, but still it doesnt work. I would appriciate the help
Thanks in advance
Regards
prasanna
|
|
|
|
|
Hi!
I need free grid control with grouping function.
Thanks for any help.
|
|
|
|
|
look in the most popular section, Chris's article
|
|
|
|
|
|
i think that you dont understand what i need, i know about this grid but you can not group by field like most of commercial functions have.
I need grid with internal grouping
|
|
|
|
|
Problem with templates<> and classes
I have this kind of class (first of all - I use VC++.NET)
class XMLParser
{
struct Scene
{
LinkedList< SceneObject > objectList;
}
struct SceneObject
{
}
LinkedList< Scene > sceneList;
XMLParser
~XMLParser();
//
static void StartElementHandler(void * data,
const char * element,
const char ** attribute);
static void EndElementHandler( void *data,
const char *el );
}
I'm using the expat library for XML parsing. This class should parse an .xml file and create a list of scenes.
XMLParser constructor initializes the expat XML parser and the StartElementHandler and EndElementHandler are callbacks that handle the parsing needed by expat.
The problem is the templated LinkeList class. I want to "new LinkedList< Scene >()". I can't do it inside the class decalration and I can't do it outside of the class declaration. In the first case I get a compiler error (obviously) and in the second one a linker error.
If I do:
XMLMovieParser::sceneList = new LinkedList< Scene >();
I get C2512 no appropriate default constructor available
and C2955 use of class template requires template list
If I do inside the constructor:
sceneList = new LinkedList< Scene >();
I get an unresolved external symbol errors: LNK2001 and LNK2019
etc.
the full class is too long to post
|
|
|
|
|
This surely is not the whole answer to the question, but
sceneList = new LinkedList< Scene >(); is trying to assign a LinkedList< Scene > pointer to a LinkedList< Scene > object.
Check the definition for LinkedList . If you've got some references around, the compiler won't be able to generate a default constructor, maybe this is the problem.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
LinkedList< Scene > sceneList;
this should be of course a pointer
LinkedList< Scene > *sceneList;
|
|
|
|
|
I have a rich-edit where I only want to support *one* font (Tahoma 10pt. etc.) set up at time of constructing of the edit. This works fine when writing in it.
But how do I force my text into this specific font and look when pasted in - from some other size and font?
Think it's something about monitoring the clipboard format but I'm not sure?
Regards,
Michael Mogensen, mm it-consult dk.
|
|
|
|
|
Handle OnPaste(), and add the text yourself (so do not do the call to the base class)
~RaGE();
|
|
|
|
|
Where is OnPaste() a member?
Not in CWnd nor in CRichEdit - last one have a Paste() only?
As far as I can see in CWnd I have:
ChangeClipboardChain(...)
SetClipboardViewer(...)
OpenClipboard(...)
GetClipboardOwner(...)
GetOpenClipboardWindow(...)
GetClipboardViewer(...)
and in CRichEdit:
Copy(...)
Cut(...)
Paste(...)
PasteSpecial(...)
CanPaste(...)
I'm a little puzzled here - I can understand what you are thinking, but...
(working with MFC 6.0 not .net)
Regards,
Michael Mogensen, mm it-consult dk.
|
|
|
|
|
I've got a problem with painting.
I'm currently using the dev-IL image library to load and paint images. If I use the main dialog's HWND to paint on, the image is visible rightaway. But, I created a static and if I use it's HWND, it will only paint the image after a to front of the dialog (with CTRL-TAB). Although I've included a Validate after the paint.
How can I tell the static to update/repaint/validate?
I've already tested some things I found here, but doesn't work.
tnx.
using: [VISUAL STUDIO 6.0 sp5] [WIN98/2]
|
|
|
|
|
You should not Validate() it, but Invalidate() it.
~RaGE();
|
|
|
|
|
Is anyone here who knows how to set a dial up connection as a deafult one ( using WinApi)
Please help
|
|
|
|