|
any help on how to manage the code in VC++
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
What do you mean by the term "manage"?
Software Zen: delete this;
|
|
|
|
|
vikas amin wrote: any help on how to manage the code in VC++
What about Visual Source Safe or CVS
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I am trying to activate a vertical scroll bar in a CGridCellRich control embedded in Chris Monder's CGridCtrl control. My use of ES_MULTILINE in the call to Create has the desired effect, but setting the WS_VSCROLL bit does not produce scrollbars.
m_RichEditTemp.Create ( WS_CHILD | ES_MULTILINE | WS_VSCROLL, CRect(0,0,0,0), this, IDC_RICHEDIT_TEMP);
Also, I tried calling ShowScrollBar from the control itself, but this has no appearent effect. Any suggestions would be appreciated.
Thanks,
Gil
|
|
|
|
|
hey guys,i am currently working on the media player project,
i am want have feature like capture the cd track by using directshow
and convert the track to mp3 into the harddrive
is it possiable by using Da Directshow?
thanks
|
|
|
|
|
If you have an MP3 encoder filter loaded the it should not be a problem.
|
|
|
|
|
I'm trying to design a special type of grid in VS .NET 2003. I need to create a row of rectangular boxes, each one the same height but possibly differing lengths. I will also need to create a series of these things fashioned like a grid.
I was thinking a list view but I don't think you can change individual cell lengths. I don't quite know what would work and I was thinking I'd have to make it myself somehow. If I made it myself, I'd probably derive my class from CView because it would be a view in a document interface-type application.
|
|
|
|
|
As far as i think its more of Custom Design so
u will have to make it your self ?
best luck
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
|
Yeah, I ran across that one among other spreadsheet-style controls. I want to show more than just a single text item in a single cell. I found an article on here that describes how to create your own control and I'm trying to work through it now.
|
|
|
|
|
Hi,
I created a SDI project with a few dialogs
One of the dialogs is to allow user to open
up a file, then the program will parse the data.
After that, it will display some text data
to the user.
I did some search on display text but I
am sure what's the best approach.
Can or should I use a CDialog to display text?
The text is going to be a couple hundred lines
and some lines are about 90 characters long.
So, I probably need to have vertical &
horizontal scroll bars.
Any suggestions would be appreciated!
Thanks,
Kevin
|
|
|
|
|
An edit control in a dialog would do nicely. You can enable several styles that help: "multiline", "want return", and "horizontal scroll" and "vertical scroll". You can set these in the resource editor when you create the control.
If the text is formatted using spaces (say, into columns), you may want to set the font used in the edit control to a monospaced font (Courier New, for example).
Software Zen: delete this;
|
|
|
|
|
kevincwong wrote: Can or should I use a CDialog to display text?
Why would you use a CDialog to display text? What exactly do you mean by this?
To Display text, a nice idea is to use CEditBox, incase you may want to allow the user to transport this data somewhere else i.e. He may copy this and paste somewhere else.
Can you elaborate the problem a little more?
You have an apple and me too. We exchange those and have one apple each.
You have an idea and me too. We exchange those and have two ideas each.
- someone
|
|
|
|
|
You are correct. After doing more research, I found that the CEditBox
can do exactly what I wanted.
I am from Unix side. So, please forgive me if my MFC lingos
or knowledge are not good enough.
Currently, I am working on a MFC project to do something like
inventory control. I already done all backend sql search stuff.
Now, I need to display the inventory information to the
user in text format.
For example:
Item 1: something something
Quantity: 20
Description: some description.........
Item 2: someting else
Quantity: 202
Description: some other description.........
So, as I mentioned before, the CEditBox works perfectly for me.
Regards,
KEvin
|
|
|
|
|
:(How to read/write a byte to LPT ? I want to use CreateFile,DeviceIoControl,ReadFile,WriteFile,... to read/write byte to Lpt port. In CreateFile(lpFileName,....) I do not know set lpFileName = ????. App run on Win2000,WinNT.
|
|
|
|
|
I think you create a null-terminated string with "LPT1", and CreateFile will understand this as being the parallel port. Here's an example where it looks like they are trying to do the same thing as yourself. Good luck.
|
|
|
|
|
Parallel port access u can use the traditional outport & inport functions
but if u want to deal with the device driver concept the u need to search
for it .Probably there are few available class on the internet wich serves
ur purpose.
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Hello to all the weekend programmers in the house ::- ) (since it's Sunday 2 AM right now...). Is there any night-bird (or morning bird if we're at it...) able to tell me how can I retrieve such regional settings from the Windows OS like UTC Hour Difference and Week Day Name? I know it MUST be possible somehow but I searched a bit and didn't find anything relevant.
APIs such as GetSystemMetrics or SystemParametersInfo don't seem to be of any help (or am did I miss something?). So GetSystemTime returns the time in UTC format. How can I convert it to the format that the local Windows user uses?? What about the week day name? In English it's Sunday but if the user uses a French regional package it would be Dimanche (I hope I didn't mess up the spelling). Soooooooooo?
Edit 1: Stuff like CIMV2 is not good 'cause it only works on NT.
Edit 2: I found how to get the UTC time difference. Here's the answer: GetTimeZoneInformation API. Now what about the day of the week name in the regional language of the user. The Operating System has usually has them. Anybody know anything about how to get it?? ::- ).
-= E C H Y S T T A S =-
The Greater Mind Balance
-- modified at 3:52 Sunday 13th November, 2005
|
|
|
|
|
If you just need the local time, you can call GetLocalTime() , which automatically adjusts the UTC for the difference, Daylight Savings Time, and so on.
You can use GetDateFormat() to format dates according to the user's language and localization.
Software Zen: delete this;
|
|
|
|
|
I found that already. Didn't know about GetDateFormat ::- > and it's very useful to. Thanks!
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
Hey,
how can I create a (toplevel) window - derived from CWnd - in my SDI - application. I need a window which can be plased outside my application window. I created a class "CHelpWindow" derived from CWnd. After that, I wanted to create this window in my CMainFrame class, but not as a childwindow!
Here is my first try:
m_hHelpWindow.CreateEx(NULL, NULL,"TestWindow",WS_CAPTION,reRect,0,IDW_TEST,0);
-->CreateEx fails...
I like to have a window with border, sysmenu and caption...
Thanks for your advice...
|
|
|
|
|
|
I'll try this..
Is it possible to create a window derived from CScrollView?
|
|
|
|
|
Hi,
I am trying to draw Ascending and Descending sort arrows in a ListView Control Header using the WIN32 API. I have handled the NM_CUSTOMDRAW message and everything works ok except for one situation. The first time I click on the header control the column data is sorted properly, but the sort arrow is drawn then immediately erased. If I swap to another window and come back the sort arrow appears in the display. If I click on the same column a second time the arrow is drawn and remains in the display. The problem occurs anytime I click on a column in the header for the first time.
I know there is something I am missing here but being new to WIN32 I don't have a clue what else to try.
Thanks!
|
|
|
|
|
How about doing it with a bitmap instead, so you don't have to worry about drawing the arrow yourself? Check the docs on HDITEM - there's a mask flag HDI_BITMAP and you store a bitmap in the hbm member. If you're on XP+, the header has built-in sorting arrow support - see the HDF_SORTDOWN and HDF_SORTUP flags.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | 1ClickPicGrabber | NEW~! CP SearchBar v3.0 | C++ Forum FAQ
Come quietly or there will be... trouble.
|
|
|
|