|
hi ... can anyone advice me how to make a graphical text editor in c++ without using microsoft foundation classes....please help
|
|
|
|
|
|
hey dude...thanks for the reply...but i dont want to use win32 api either....if u can just tell me how..to go about creating a graphical text editor in c++ without using mfc or win32 api...that would be more than sufficient....thanks in advance!!
|
|
|
|
|
It sounds as if either:
1. Your question is a joke, or
2. You don't know what you're talking about
If you don't want to use the Win32 API, then what are you imagining you would use?
|
|
|
|
|
What exactly are you going to use, then, magic fairy dust?
|
|
|
|
|
is it possible to use it ...aneyways was planning to make it using graphics.h...but i think using win32/mfc would be a better option..it might be tough in the starting...but in the long run its going to be a better thing to work on..thanks a lot guys....for ur valuable suggestions
|
|
|
|
|
Hello,
I want to place the caret position at the end of the text in a CRichEditCtrl. But when it naturally moves to the CRichEditCtrl box the caret is placed at the beginning.
I tried the message EM_POSFROMCHAR but it takes one character and gives its position and I cant give that last one character as it can repeat in between somewhere.
How should I place the caret at the end?
I hope my question was clear.
Thanks for the codeproject forum.
Pritha
|
|
|
|
|
You cannot move the caret using SetCaretPos() for CEdit and CRichEditCtrl. INFO[^]
To move the caret use SetSel and specify the same start pos and end pos.
Example:
...
int p=m_RichEditCtrl.GetWindowTextLength()-1;
m_RichEditCtrl.SetSel(p,p);
...
Hope that helps.
|
|
|
|
|
|
my program is the following
int m_nCurFrame;// extract the current frame from avi file
int m_nMax; //total frames in the avi file
BOOL bb;
CXXView::CXXView
{
bb = FALSE;
}
void CXXView::OnAutoProcessing()
{
while (m_nCurFrame++ <m_nMax)
{
if(bb)
{
break;
}
.......//procesing
}
}
~CXXView::CXXView
{
bb = TRUE;
}
when i exit this program, the program enter the ~CXXView, then enter OnAutoProcessing(),because the object is dead,so the program is wrong,but i want to exit the programentoirly,can you give me some advices?
thanks!!!!!!
In near day,I want to change the TITLEBARINFO of my Program?
My code is following:
#include "winuser.h"
...........
...........
TITLEBARINFO bti;
bti.cbSize = sizeof(TITLBARINFO);
GetTitleBarInfo(GetParent()->m_hWnd,&bti);
But i can't compile these codes,can you tell me how to do?
My program is developed by VC++6.0 under Winxp.
|
|
|
|
|
I'm a little confused...
Do you have a function, like:
delete pXXView;
pXXView->OnAutoProcessing ();
If so, that's your own silly fault, and we can't help you *not* do stupid stuff.
Being CSomeView::On____ () sounds a lot like a message handler from a menu / toolbar button. If so, how does it get called after the view's destructor?
You need to explain some of the glue. If you don't know the answer either, put a breakpoint at the start of OnAutoProcessing, and then look at the call stack to see how it got called.
Iain.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
Does OnAutoProcessing run in a separate thread?
If so you should wait till the thread exits in the destructor after setting the bb variable to TRUE .
You can use the GetExitCodeThread function to check if the thread status is STILL_ACTIVE .
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Hi There,
Please let me know some good freelancing websites from where I can get project and earn some money.
Its very urgent please help me.
Best Regards,
AIS
|
|
|
|
|
Hi.
Apologies for not knowing English language well.
I develop an application (with VC++)that run Microsoft Office Word 2007 that open a doc file automatically. I want to prevent user file opening.In other word I want to limit user to can not see File Open window. But I don't know any idea to do that?
If you can , please help me.
Thanks a'lot.
modified on Tuesday, September 1, 2009 6:30 AM
|
|
|
|
|
no way.
open the file with windows api into the memory instead of opening it with office interface
it's my pleasure to make friend with you.
|
|
|
|
|
Wrong. You can do it by hooking.
|
|
|
|
|
Hello to everyone,
I am a C programmer for one week only...
In my work I have to do (urgently) a code to calculate the Fast Fourier Transform of a discrete signal (1D)(to calculate FFT from some discrete values).
I have visited some web sites but I don´t have found any clear answer for it.
Could anyone lend me a source code to calculate it or any other help, please?.
I was very grateful to anyone who can help me.
Thanks in advance,
Kind regards.
My mail: programmer202@gmail.com
|
|
|
|
|
programmer202 wrote: I am a C programmer for one week only...
Let me be the first to tell you good luck! FFT by itself is not an easy thing to program, even for a seasoned programmer; and if you just started C programming for only a week, then you are just aiming to be a failure; and if it's part of your work, then I have to also question the wisdom of your manager to ask you to do that.
anyway, I've googled that and found a few "hits" with C/C++ code ... you should be able to do the same; and download some and do your computation with that.
This signature was proudly tested on animals.
|
|
|
|
|
This page[^] has links to FFT source code.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi. I am new here and I hope this is the place to post this.
I play poker on Absolute poker and when closing the app it displays an annoying splash screen that cannot be closed and is always on top.
It stays there for about 5 secs and drives me crazy!
Is there a way using c++ to prevent apps from creating windows with the always on top style?
|
|
|
|
|
I would employ a non-technical solution.
1/ You need to pay for the app to get rid of any nag screens.
or
2/ Vote with your pocket and don;t give bad / evil programs your money or your time.
Iain.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
It's not a matter of money. The app is free. It is Absolute Poker's
client that allows you to play poker on their network. Full tilt poker has
a similar splash screen but they give you the option to turn it off if you want. Sometimes I will be playing two tourneys at the same time and when I close AP after losing the splash screen covers the board of the other game.
It is very obnoxious.
|
|
|
|
|
You ask if this is the correct place to post this question. Short answer: No! Longer answer: try asking the supplier of the program how to get rid of it; it looks like there is something wrong with their application that leaves an orphaned window on your system after it terminates.
|
|
|
|
|
Can you employ the use of a popup-stopper?
"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
|
|
|
|
|
Absolute poker is a stand alone app, it doesn't run in my browser.
I recently downloaded AutoHotkey so that I can use the keyboard when I play on FullTilt and I think there might be a way to use it to send a message to the window, but I need to learn thee script language that it uses and from the code I have seen I think it can only turn keypresses into mouse clicks on buttons that are already in the window. I'm not sure how AutoHotkey works but it does interact with the top level window and I am hoping I can find a way to send it a close message by pressing a key or something.
|
|
|
|