|
Stuart Dootson wrote: how are you counting?
See there's this roulette wheel and ![Jig | [Dance]](https://codeproject.freetls.fastly.net/script/Forums/Images/jig.gif)
|
|
|
|
|
|
Can I format the text to be displayed in a Rich Edit via Setsel ReplaceSel
in Editstream Call Back function before I copy it to the output buffer
thankx
|
|
|
|
|
ForNow wrote: Can I format the text to be displayed in a Rich Edit...before I copy it to the output buffer
Yes, maybe not with those exact methods, but you can edit/format it.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
[assumptions]You're using EM_STREAMIN to get text into a rich-edit control[/assumptions]
I don't see how that's going to work - the text isn't in the rich-edit control yet, so won't be accessible through the control.
I suspect the only way to do it is to tell the control that you're giving it RTF and annotate the text with RTF markup - here's the RTF spec[^]
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Exactly what I was thinking
I am trying to display a Storage Dump From the Rich Edit
So...... On the left hand side I would have 0000010 the 16 bytes newline
000020
I would like to high light the storage location So...
In the call back function I would probably mark it up with XXXXXX
Once the text is in the Rich Edit Object. I would do A FindText to give me the index of
the current XXXXXX Setsel give it the attributes I want
Then ReplaceSel with the right Storage location number
thankx
Again
thnakx
|
|
|
|
|
hi,
i am creating some CStatic based controls on a dialog with a regular MFC DLL. (MFC statically linked)
so ,main application calls some functitons in DLL, Like: Create ,Resize ,Move
and DLL creates control on main app's dialog and manages control as main app needs
my problem is:
with this method , tooltips , TAB , CTRL + combinations do not work
could you help me to solve this problem, Please
thanks in anvance
|
|
|
|
|
Do let me know the exact purpose for using static control.
Because the functionality that you require can be done using CStatic, however it is easier to use some other control like CButton and then customize it to use in whatever way you want.
CButton already has Tab and tooltip enabled.
Also to enable tab you need to first set the property tabstop to TRUE(this is FALSE by default for static controls) Then you need to write code to show the focus on the static control.
See the following URL to show tool tip on static control:
http://sarathc.wordpress.com/2007/09/29/simple-way-to-enable-tooltip-for-static-controls/
|
|
|
|
|
thank you for your reply
but the problem is not that ,i knew that and tried but it does not work because,i am creating the control from a dll , i think this is related with the message loop, but i could not find a solution to this
this is a relevant link and this was not work also
http://support.microsoft.com/kb/187988/en-us[^]
thanks
|
|
|
|
|
Hi there.
I want to create jpg file programmatically.
Lets say I have some text "Hello", Now I want to create a jpg file that contains this text.
Thanks
PanB
|
|
|
|
|
So have you bothered to study the JPG file format?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Not yet. I was mainly looking for some sample code that can do the trick.
Can you please provide some pointers to do the same?
|
|
|
|
|
PankajB wrote: Can you please provide some pointers to do the same?
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Have you searched the internet and CP? Usually, nobody feels like offering any help to people who are not willing to help themselves. Not to mention you're asking for "the code" to do something that's extremely trivial. Like I said, in my other reply to you, there are two steps to it. Go ahead, give it a try and come back with a specific question if at all.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Two steps:
1. Draw your text to a bitmap.
2. Compress it to JPEG.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I want to do this programatically.
I think you have suggested using some tool may be mspaint.
If you are talking about through the cose itself, then please provide more details in raegrd to the sugegsted steps. Thanks.
|
|
|
|
|
I knew you wanted to do it programmatically. Have a look at Drawing lines, shapes, or text on bitmaps[^] and then you'll be left with compressing a bitmap to JPEG. A search must bring up an example, if you ask me.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Have a look at the jpeglib[^] stuff.
IMO, it's not an easy task if you want to do it completely manual.
Like other said, create an in-memory bitmap and save-as jpg with a known API like CImage or something similar.
This signature was proudly tested on animals.
|
|
|
|
|
|
If you like to see more info about jpg format see CXImage article on the codeproject it has helpful info for you.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Let me google your question for you.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
lol very funny 
|
|
|
|
|
|
need help to understand output
LinkedStackType stack;
int x = 4, y;
stack.push(x);
stack.push(x-2 );
y = stack.top( );
stack.push(y +8 );
stack.pop( );
stack.push(x+y);
stack.push(x-2);
stack.push(y+3);
x=stack.top( );
stack.pop( );
y = stack.top( );
cout << x << ‘ ‘ <<y<<endl;
while (!stack.isEmpty( ) )
{
cout << stack.top( )<<endl;
stack.pop( );
}
|
|
|
|
|
flo561 wrote: need help to understand output
What about the output do you not understand?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|