49,755 Topics

Member Avatar for
Member Avatar for cambalinho

the control have the WS_TRANSPARENT style. and: case WM_ERASEBKGND: { return TRUE; } break; case WM_CTLCOLORSTATIC: { return (LRESULT)GetStockObject(NULL_BRUSH); } break; case WM_DRAWITEM: { DRAWITEMSTRUCT *test=(DRAWITEMSTRUCT*) lParam; image imglabel(test->rcItem.right-test->rcItem.left,test->rcItem.bottom-test->rcItem.top); if(inst->blnTransparent!=true) FillRect(test->hDC,&test->rcItem, CreateSolidBrush(inst->clrBackColor)); else FillRect(test->hDC,&test->rcItem,(HBRUSH) GetStockObject(NULL_BRUSH)); FillRect(imglabel,&test->rcItem,CreateSolidBrush(inst->clrBackColor)); if(inst->imgtest.haveimage()) DrawHICONtoHDC(imglabel, inst->imgtest,1,1); SetBkMode(imglabel,TRANSPARENT); char *text=(char*)inst->strCaption.c_str(); SetTextColor(imglabel,inst->clrTextColor ); DrawTextEx(imglabel,text,-1,&test->rcItem,DT_LEFT,NULL); if(inst->blnBorder==true) DrawEdge(imglabel, &test->rcItem,BDR_SUNKENINNER | BDR_RAISEDOUTER,BF_RECT); …

0
103
Member Avatar for benphipps

Hello all, I am having trouble with my programming assignment in which we have to build a MIDI scale player. I am willing to send the assignment brief and my current to anyone willing to help. Cheers, Ben

Member Avatar for xtian170174
0
153
Member Avatar for cambalinho

when the form is activated: case WM_ACTIVATE: { if (wParam==WA_INACTIVE) { SetWindowText(inst->hwnd,"unactivated"); FormActivated = NULL; } else { SetWindowText(inst->hwnd,"activated"); FormActivated = inst->hwnd; } return 0; } break; when i create the timer: case WM_CREATE: { if(WindowMain == NULL || WindowMain ==GetDesktopWindow()) { WindowMain = HandleWindow; } SetTimer(inst->hwnd,JoystickTimer,150,NULL); SetTimer(inst->hwnd,KeyBoardTimer,150,NULL); SendMessage((HWND)lParam , …

Member Avatar for cambalinho
0
144
Member Avatar for Jazmine_1

Please help me I'm getting frustrated. #include <iostream> #include "unorderedArrayListType.h" using namespace std; int main() { int intList = new intList(8); int number; cout << "Enter 8 Integers: "; for (int count = 0; count < 8; count++) { cin >> number; intList.insertEnd(number); } cout << endl; cout << "Int …

Member Avatar for tinstaafl
0
198
Member Avatar for nightcrew

[QUOTE]Assume you have a int variable n that has already been declared and initialized. Its value is the number of integers that need to be read in from standard input and printed out in sorted (ascending) order, each on a line by itself. Furthermore, there are no duplicates in the …

Member Avatar for omgerg
0
3K
Member Avatar for Mahbeezzy

How do i write a program that computes the sum of all even numbers in a range forexample between 1 and 100

Member Avatar for TObannion
0
187
Member Avatar for VengefulToast

Hi fellow members, I have wrote two abstract classes, with the second inheriting from the first. However, I receive this error when I try to compile: "error C2143: syntax error : missing ',' before '<'." Will somebody help me out? Thanks! template <class DataType> class AbstactArrayClass { friend ostream& operator …

Member Avatar for mike_2000_17
0
281
Member Avatar for Ahmed_58

Write a nested loop for C++ to produce the following pattern if the user input is 5? ----1 ---22 --333 -4444 55555 (-) accounts for number of spaces before each number

Member Avatar for iamthwee
-1
108
Member Avatar for DS9596

Max and min come out wrong, they go to 0's when it outputs ? How do I fix, any solutions?? #include <iostream> #include <iomanip> #include <string> using namespace std; int main() { int x, y, z; int total; float average; //Read data into x, y, z void ReadData(int & x, …

Member Avatar for necrovore
0
1K
Member Avatar for DS9596

I did it like this and it somewhat works but I have problem with the middle name such as Barrack Hussein Obama. How do I make it so it ignores the middle name and just gives me the last name??? #include <iostream> #include <iomanip> #include <string> using namespace std; int …

Member Avatar for Moschops
0
168
Member Avatar for Hidayat_1

Every programming language provides different features to make coding task easy. One of the main objectives is to keep things simple as possible. You have studied C++ in this course and have learnt many different concepts e.g. input/output, if-else statements, loops, arrays, functions etc. Looping constructs are needed when a …

Member Avatar for deceptikon
0
163
Member Avatar for prabhjitsw

I am new to Dev C++ and i am creating a program of a game of snake. In Dev C++ the graphics open in WINDOWS BGI screen whereas the text gets shown in Text console(Dos). 1)i want to know how can i clear the WINDOWS BGI screen ? 2)how can …

Member Avatar for amit_26
0
1K
Member Avatar for RanyaAnwar

write a function to calculate the maximum number of four numbers notice that the four numbers will be entered by the user

Member Avatar for RanyaAnwar
0
140
Member Avatar for Advaith_1

Hey guys... I have Borland C++ compiler with version 5.02. The problem is that once I run the code, it makes and just flashes and disappears. I mean, in a simple 'hello world program', the program just cout 'hello world' and closes itself. I tried getch(); and it did work, …

Member Avatar for svn74
0
267
Member Avatar for alz3eem-94

Hi, Our teacher explains nothing, he expects us to learn from reading the book. I need help on how to start this assigment. I have attached the assigment.

Member Avatar for iamthwee
0
113
Member Avatar for phony

I need to check my code has all these requirements. The requirements for “main()” are: a. Use an object. b. Declare all required variables. c. Output user information. d. Input the radius 1 and radius 2 to be used to calculate the area of two circles. e. Use object Circle …

Member Avatar for NathanOliver
0
482
Member Avatar for biabia1
Member Avatar for daylighti

A language expert Mr. ABC objects the designers of C++ on the bases of following two arguments: A single looping construct is sufficient to cover all types of situations. Designers of C++ have not done any good with themselves and C++ programmers by making things complex with provision of three …

Member Avatar for Moschops
0
97
Member Avatar for DS9596

It lets me continue the loop but it won't let me enter a sentence the second time?? #include <iostream> #include <iomanip> #include <string> #include <cctype> using namespace std; int main() { char c, response; int Uc = 0, Dc=0, Vc=0, Wc=0; string vowels("aeiouAEIOU"); cout << "I can count the number …

Member Avatar for NathanOliver
0
374
Member Avatar for phony

I need to output the smallest number that is entered. I can't seem to figure out how to do it though. Thanks in advance. small.cpp #include <iostream> #include <algorithm> #include "arrayListType.h" using namespace std; int main() { arrayListType<int> intList(100); // int min(int first, int last); int counter; int number; cout<< …

Member Avatar for NathanOliver
0
390
Member Avatar for fedodedo12345

Create a C++ console applications to compile the following statistics on a list of integers:  minimum value;  maximum value;  median value;  arithmetic mean;  absolute deviation  variance (of a discrete random variable);  standard deviation (of a finite population);  mode (including multi-modal lists).  …

Member Avatar for rubberman
0
192
Member Avatar for MustafaScript

I started learning python a few days ago, i want to learn both python and C++ What is your advice ?

Member Avatar for rubberman
0
199
Member Avatar for keshavbhusal1
Member Avatar for mike_2000_17
0
105
Member Avatar for PulsarScript

Hi, how can i avoid of key beeing inserted into wrong location.If i do lets say 3 numbers ,5 digits long like 12345,23445,56745 and choose location 45,they will be inserted to location 45,but if try to insert 67452 to the same location it will be inserted,but i need it to …

Member Avatar for StuXYZ
0
196
Member Avatar for cypherscouter13

I am trying to compile the files below. The PosLin.cpp contains the SurTriAuto and SurTriPosRotAndQ functions below. Before adding SurTriPosRotAndQ, it compiled fine, but when I added SurTriPosRotAndQ, I am getting "invalid use of incomplete type ‘struct PosRotAndQ" error messages I was thinking I could try moving SurTriAuto and SurTriPosRotAndQ …

Member Avatar for cypherscouter13
0
435
Member Avatar for bob.clyde.75

I have a code that suppose to prompt a user for thre numbers and output them in ascending order but i get the wrong results for example if i put in 476 it output 764 and i am trying to fix this and add the comments of havigng it prompt …

Member Avatar for iamthwee
0
345
Member Avatar for Dani

This is a program I just recently completed for a computer science course. Given a 2D grid, where every path between two gridpoints has a weight (path length) associated with it, this program computes the shortest path from (1,1) to (m,n). You are only allowed to move up and to …

Member Avatar for mohmedd
0
539
Member Avatar for nate9603

I've compiled a working program, for whatever reason, is returning 0 values for the output. I'm not sure why this is happening. I've been troubleshooting this for hours and I can't figure it out. Any help would be much appreciated. Here is the full program's code: #include "stdafx.h" #include <iostream> …

Member Avatar for nate9603
0
243
Member Avatar for prince.qureshi.94

plz write a program in c++ for inserting a node in sorted link list at starting , middle and end. thank you.

Member Avatar for Moschops
-2
92
Member Avatar for amila.dulanjana

Write a java program to obtain the following shape. You must use while loops in Java to generated the output. Note: The & sign is line 3 has been purposefully removed. how to do this & & & & & & & & & & & & & & & …

Member Avatar for amila.dulanjana
-2
93

The End.