Forum: C++ Oct 22nd, 2009 |
| Replies: 12 Views: 346 Never mind. I figured it all out. Thanks for all of your help. I had to use the IsDialogMessage function properly. |
Forum: C++ Oct 22nd, 2009 |
| Replies: 12 Views: 346 I'm not following your code very well, could you please explain it? And shouldn't the tab stop style fix my problem because from the research that I've done, It should do exactly what I want it to.... |
Forum: C++ Oct 22nd, 2009 |
| Replies: 12 Views: 346 OK, after some research I figured out that I could use WS_TABSTOP but it's still not working. I have condensed my Program down so that you can see somewhat of the full code that I am dealing with.
... |
Forum: C++ Oct 21st, 2009 |
| Replies: 12 Views: 346 Actually here's the code to the entire dialog Procedure:
BOOL CALLBACK DlgProc2(HWND hwnd2, UINT Message2, WPARAM wParam2, LPARAM lParam2)
{
switch(Message2)
{
case WM_INITDIALOG:
//... |
Forum: C++ Oct 21st, 2009 |
| Replies: 12 Views: 346 Here is the best thing that I could come up for the tab functionality but it still doesn't work.
case WM_CHAR:
switch(LOWORD(wParam2))
{
case 0x09:
{
HWND hmove =... |
Forum: C++ Oct 21st, 2009 |
| Replies: 12 Views: 346 I'm not sure how to create the functionality of the tabs. |
Forum: C++ Oct 21st, 2009 |
| Replies: 12 Views: 346 How can I say, if the tab button is pushed, use SetFocus() ?
(I haven't dealt to much with code for saying if a certain button is pressed do something.) |
Forum: C++ Oct 21st, 2009 |
| Replies: 12 Views: 346 Well yes, but how can I use that in order to do this? |
Forum: C++ Oct 21st, 2009 |
| Replies: 12 Views: 346 Hey,
I was just wondering how do I make my edit boxes so that when the the tab button is hit the cursor will go on to the next edit box in windows API. I've done some research on functions that deal... |
Forum: C++ Sep 7th, 2009 |
| Replies: 6 Views: 394 I'm having troubles implementing your code into mine. I used resource files to create my buttons and edit boxes and I'm not using the window for this, I'm just using a dialog box here is some of my... |
Forum: C++ Sep 6th, 2009 |
| Replies: 6 Views: 394 Ok, I tried this but it didn't work.
case IDC_AWA:
{
HWND hRetrieve = GetFocus();
int length = GetWindowTextLength(hRetrieve);
LPCSTR pszText = "รก";... |
Forum: C++ Sep 6th, 2009 |
| Replies: 3 Views: 282 Yeah, just use system("color 1F);
The 1F is just an example. they stand for the color's foreground and background. to view the different color choices go to command prompt and type color ?. |
Forum: C++ Sep 6th, 2009 |
| Replies: 6 Views: 394 Hey, I was working on a program in windows API where there are multiple edit boxes and there are push buttons. If a pushbutton is clicked, I want the program to find the edit box that the cursor is... |
Forum: C++ Sep 2nd, 2009 |
| Replies: 7 Views: 288 Thank you that actually helped quite a bit and there really is no reason besides just the fact that I want to learn. |
Forum: C++ Sep 2nd, 2009 |
| Replies: 7 Views: 288 thank you very much. Now is there a compiler that will let me create them?
Would Dev let me? |
Forum: C++ Sep 1st, 2009 |
| Replies: 7 Views: 288 I use the compiler that comes with Visual C++, the os is vista. and by compiler directives I mean like when you use #define, #if, #endif... and so on. I have used compiler directives many times but... |
Forum: C++ Sep 1st, 2009 |
| Replies: 7 Views: 288 Hey, I was wondering how (if it's even possible) to create my own compiler directives. Any help? |
Forum: C++ Aug 18th, 2009 |
| Replies: 1 Views: 214 Hi, I was wondering how you could change the head bar of a window in windows API.
This is the line of code that I want it to change:
CAPTION "Spanish Conjugation Quiz" |
Forum: C++ Aug 18th, 2009 |
| Replies: 5 Views: 504 I downloaded winres.h. If you look in the resource file, and see where I include it, you can replace it with afxres.h instead. |
Forum: C++ Aug 18th, 2009 |
| Replies: 7 Views: 338 nevermind I figured it out, thanks for all the help. |
Forum: C++ Aug 18th, 2009 |
| Replies: 7 Views: 338 Yea I was actually looking at that just before you told me that but is there some kind of message for inserting the text? |
Forum: C++ Aug 18th, 2009 |
| Replies: 7 Views: 338 |
Forum: C++ Aug 18th, 2009 |
| Replies: 7 Views: 338 Well, I create the edit box in my resource file and it's identifier is something like IDC_IDENTIFIER. So how would I go about doing it that way? |
Forum: C++ Aug 17th, 2009 |
| Replies: 7 Views: 338 Hey, I'm working on a Spanish program and I want to make it so that if somebody wants to type in an a with an accent all they have to do is press the pushbutton. I realize how to create the... |
Forum: C++ Aug 17th, 2009 |
| Replies: 1 Views: 234 Hey, I can't figure what is wrong with this part of my program. I know that it has something to do with that my variable i is exceeding the vector boundaries but I can't figure out how to stop it. I... |
Forum: C++ Aug 16th, 2009 |
| Replies: 2 Views: 380 Thanks. It works like a charm now. |
Forum: C++ Aug 16th, 2009 |
| Replies: 2 Views: 380 Hey, I was working on a program that would ask you a question and you had to put an answer. Well, when I went to compare the answer the user inputs with the right answer, it always comes up wrong and... |
Forum: C++ Aug 12th, 2009 |
| Replies: 0 Views: 249 Hey, I'm having some troubles with my hangman game i'm making. I want it to display dashes for the number of characters that there are in the word which that part works fine. but then if they guess... |
Forum: C++ Aug 10th, 2009 |
| Replies: 5 Views: 504 Thanks that worked perfect. |
Forum: C++ Aug 9th, 2009 |
| Replies: 5 Views: 504 I'm trying to load a bit map but the picture won't come up. It compiles just fine. I'm not sure if this makes a difference either but I am trying to load a bitmap into a dialog box. Here's the code:... |
Forum: C++ Aug 7th, 2009 |
| Replies: 3 Views: 229 SPNstruct(LPCSTR english, LPCSTR spanish) { eng = english; spn = spanish; }
eng = new LPCSTR[strlen(english)+1];
strcpy(eng, english);
// now do the same thing for spn variable
spn =... |
Forum: C++ Aug 7th, 2009 |
| Replies: 3 Views: 229 Hey, I'm trying to load a bunch of words and setting them as my text but I they aren't setting for some reason. Here is the code:
#include "windows.h"
#include "resource.h"
#include <fstream>... |
Forum: C++ Aug 6th, 2009 |
| Replies: 1 Views: 313 What I mean is how can I use that string in the first parameter? |
Forum: C++ Aug 6th, 2009 |
| Replies: 1 Views: 313 How do I make a line of code such as this possible?
LTEXT spnV,IDC_STATIC,57,10,200,8 |
Forum: C++ Aug 2nd, 2009 |
| Replies: 3 Views: 339 actually here is my latest up-to-date attempt.
case IDC_ENTER:
{
char pass[20];
GetDlgItemText(hwnd3, IDC_PASSC, pass, 20);
if(pass == "password")
{
if... |
Forum: C++ Aug 2nd, 2009 |
| Replies: 3 Views: 339 case IDC_ENTER:
{
SetDlgItemText(hwnd3, IDC_PASS, "pass");
HWND hPass = GetDlgItem(hwnd3, IDC_PASS);
HWND hPass2 = GetDlgItem(hwnd3, IDC_PASSC);
if(hPass == hPass2)... |
Forum: C++ Aug 2nd, 2009 |
| Replies: 3 Views: 339 Hey, I was attempting to make a password protection system in windows API where someone can type the password in an editbox and if it is the right password, then continue the program else display an... |
Forum: C++ Jul 31st, 2009 |
| Replies: 18 Views: 581 Thank you so much. I put it in and everything works great!!! Thank you so much!!! |
Forum: C++ Jul 31st, 2009 |
| Replies: 18 Views: 581 Well this message came with it too:
There is no context in which this conversion is possible |
Forum: C++ Jul 31st, 2009 |
| Replies: 18 Views: 581 that error was fixed thankyou, but i still have one more that has to do with the 4th parameter of the SendMessage function:
error C2664: 'SendMessageA' : cannot convert parameter 4 from 'const char... |